diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/include/eina_inline_lock_wince.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libraries/eina/src/include/eina_inline_lock_wince.x b/libraries/eina/src/include/eina_inline_lock_wince.x index 965d475..1af1aac 100644 --- a/libraries/eina/src/include/eina_inline_lock_wince.x +++ b/libraries/eina/src/include/eina_inline_lock_wince.x | |||
@@ -19,6 +19,15 @@ | |||
19 | #ifndef EINA_INLINE_LOCK_WIN32_X_ | 19 | #ifndef EINA_INLINE_LOCK_WIN32_X_ |
20 | #define EINA_INLINE_LOCK_WIN32_X_ | 20 | #define EINA_INLINE_LOCK_WIN32_X_ |
21 | 21 | ||
22 | #ifdef EINA_UNUSED | ||
23 | # undef EINA_UNUSED | ||
24 | #endif | ||
25 | #ifdef __GNUC__ | ||
26 | # define EINA_UNUSED __attribute__((unused)) | ||
27 | #else | ||
28 | # define EINA_UNUSED | ||
29 | #endif | ||
30 | |||
22 | #include <windows.h> | 31 | #include <windows.h> |
23 | 32 | ||
24 | EAPI extern Eina_Bool _threads_activated; | 33 | EAPI extern Eina_Bool _threads_activated; |
@@ -26,6 +35,7 @@ EAPI extern Eina_Bool _threads_activated; | |||
26 | typedef HANDLE Eina_Lock; | 35 | typedef HANDLE Eina_Lock; |
27 | typedef Eina_Lock Eina_RWLock; | 36 | typedef Eina_Lock Eina_RWLock; |
28 | typedef DWORD Eina_TLS; | 37 | typedef DWORD Eina_TLS; |
38 | typedef void * Eina_Semaphore; | ||
29 | 39 | ||
30 | static inline Eina_Bool | 40 | static inline Eina_Bool |
31 | eina_lock_new(Eina_Lock *mutex) | 41 | eina_lock_new(Eina_Lock *mutex) |
@@ -173,6 +183,30 @@ eina_tls_set(Eina_TLS key, const void *data) | |||
173 | return EINA_TRUE; | 183 | return EINA_TRUE; |
174 | } | 184 | } |
175 | 185 | ||
186 | static inline Eina_Bool | ||
187 | eina_semaphore_new(Eina_Semaphore *sem EINA_UNUSED, | ||
188 | int count_init EINA_UNUSED) | ||
189 | { | ||
190 | return EINA_FALSE; | ||
191 | } | ||
176 | 192 | ||
193 | static inline Eina_Bool | ||
194 | eina_semaphore_free(Eina_Semaphore *sem EINA_UNUSED) | ||
195 | { | ||
196 | return EINA_FALSE; | ||
197 | } | ||
198 | |||
199 | static inline Eina_Bool | ||
200 | eina_semaphore_lock(Eina_Semaphore *sem EINA_UNUSED) | ||
201 | { | ||
202 | return EINA_FALSE; | ||
203 | } | ||
204 | |||
205 | static inline Eina_Bool | ||
206 | eina_semaphore_release(Eina_Semaphore *sem EINA_UNUSED, | ||
207 | int count_release EINA_UNUSED) | ||
208 | { | ||
209 | return EINA_FALSE; | ||
210 | } | ||
177 | 211 | ||
178 | #endif | 212 | #endif |