fix gcc6 build error
[profile/mobile/platform/kernel/u-boot-tm1.git] / nvitem / nvitem_os.c
1 \r
2 #include "nvitem_os.h"\r
3 \r
4 #if 0\r
5 typedef struct\r
6 {\r
7         pthread_mutex_t mutex;\r
8         pthread_cond_t  notify;\r
9 }THREAD_COMMUNICAT;\r
10 static THREAD_COMMUNICAT communicate;\r
11 \r
12 void initEvent(void)\r
13 {\r
14         pthread_mutex_init(&communicate.mutex, 0);\r
15         pthread_cond_init(&communicate.notify, 0);\r
16 }\r
17 \r
18 void waiteEvent(void)\r
19 {\r
20         pthread_cond_wait(&communicate.notify, 0);\r
21 }\r
22 \r
23 void giveEvent(void)\r
24 {\r
25         pthread_cond_signal(&communicate.notify);\r
26 }\r
27 \r
28 void getMutex(void)\r
29 {\r
30         pthread_mutex_lock(&communicate.mutex);\r
31 }\r
32 \r
33 void putMutex(void)\r
34 {\r
35         pthread_mutex_unlock(&communicate.mutex);\r
36 }\r
37 \r
38 #else\r
39 \r
40 void initEvent(void){}\r
41 \r
42 void waiteEvent(void){}\r
43 \r
44 void giveEvent(void){}\r
45 \r
46 void getMutex(void){}\r
47 \r
48 void putMutex(void){}\r
49 \r
50 \r
51 #endif\r