From: caro Date: Wed, 1 Jun 2011 05:55:48 +0000 (+0000) Subject: Eina : eina_inline_lock_win32.x : fix cedric's modifications in win32 code X-Git-Tag: 2.0_alpha~70^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=457402ddc0c8a6d1b97f830e9a9a9c7c81b0b5a1;p=framework%2Fuifw%2Feina.git Eina : eina_inline_lock_win32.x : fix cedric's modifications in win32 code git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59855 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/include/eina_inline_lock_win32.x b/src/include/eina_inline_lock_win32.x index 6b96479..d495b6f 100644 --- a/src/include/eina_inline_lock_win32.x +++ b/src/include/eina_inline_lock_win32.x @@ -147,7 +147,7 @@ static inline Eina_Bool _eina_condition_internal_timedwait(Eina_Condition *cond, DWORD t) { #if _WIN32_WINNT >= 0x0600 - SleepConditionVariableCS(&cond->condition, cond->mutex, INFINITE); + SleepConditionVariableCS(&cond->condition, cond->mutex, t); #else DWORD ret; Eina_Bool last_waiter; @@ -201,21 +201,21 @@ _eina_condition_internal_timedwait(Eina_Condition *cond, DWORD t) if (ret == WAIT_FAILED) return EINA_FALSE; } +#endif return EINA_TRUE; -#endif } static inline Eina_Bool eina_condition_timedwait(Eina_Condition *cond, double val) { - _eina_condition_internal_timedwait(cond, val * 1000); + return _eina_condition_internal_timedwait(cond, (DWORD)(val * 1000)); } static inline Eina_Bool eina_condition_wait(Eina_Condition *cond) { - _eina_condition_internal_timedwait(cond, INFINITE); + return _eina_condition_internal_timedwait(cond, INFINITE); } static inline Eina_Bool @@ -223,6 +223,7 @@ eina_condition_broadcast(Eina_Condition *cond) { #if _WIN32_WINNT >= 0x0600 WakeAllConditionVariable(&cond->condition); + return EINA_TRUE; #else Eina_Bool have_waiters;