projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e69919
)
util: thread: Fix missing preprocessor
63/270463/2
author
Dongwoo Lee
<dwoo08.lee@samsung.com>
Thu, 3 Feb 2022 06:30:18 +0000
(15:30 +0900)
committer
Dongwoo Lee
<dwoo08.lee@samsung.com>
Thu, 3 Feb 2022 06:30:18 +0000
(15:30 +0900)
This corrects that thread header is missing preprocessor define to prevent
including it multiple times.
Change-Id: Ic66e09df0759cbd72e03979861485fe1961b80f7
Signed-off-by: Dongwoo Lee <dwlee08@gmail.com>
include/util/thread.h
patch
|
blob
|
history
diff --git
a/include/util/thread.h
b/include/util/thread.h
index 0f13200749d65264856b8fdc37022566bb4ba3b1..6d63fb1840363a8ed44b9a7d3d0691d8b3dc8222 100644
(file)
--- a/
include/util/thread.h
+++ b/
include/util/thread.h
@@
-16,6
+16,9
@@
* limitations under the License.
*/
+#ifndef __THREAD_H__
+#define __THREAD_H__
+
#include <threads.h>
#include <time.h>
@@
-62,3
+65,5
@@
void resume_thread(struct thread *thread);
#define schedule_worker resume_thread
int wait_for_completion(struct thread *thread, void **result);
+
+#endif