diff options
author | John Koleszar <jkoleszar@google.com> | 2011-05-07 00:05:11 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2011-05-07 00:05:11 -0400 |
commit | cadb2d66512c07a54fdf802983ddf2eddb26dbf4 (patch) | |
tree | d5e6db4a957e2d0378d72dcc30297cf50c4925c0 /vp8/common | |
parent | e965d8f6f3d7079bbccac975e057d2b2daa0e20c (diff) | |
parent | 5c756005aaa17759485552edaea3e9ff99760bac (diff) | |
download | libvpx-cadb2d66512c07a54fdf802983ddf2eddb26dbf4.tar libvpx-cadb2d66512c07a54fdf802983ddf2eddb26dbf4.tar.gz libvpx-cadb2d66512c07a54fdf802983ddf2eddb26dbf4.tar.bz2 libvpx-cadb2d66512c07a54fdf802983ddf2eddb26dbf4.zip |
Merge remote branch 'origin/master' into experimental
Change-Id: I22f61430b52348b32078253d5ef38e68e7f91939
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/threading.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/common/threading.h b/vp8/common/threading.h index b7542b306..5927cb165 100644 --- a/vp8/common/threading.h +++ b/vp8/common/threading.h @@ -59,9 +59,9 @@ #ifdef _WIN32 #define sem_t HANDLE #define pause(voidpara) __asm PAUSE -#define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateEvent(NULL,FALSE,FALSE,NULL))==NULL) +#define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL) #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE)) -#define sem_post(sem) SetEvent(*sem) +#define sem_post(sem) ReleaseSemaphore(*sem,1,NULL) #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE) #define thread_sleep(nms) Sleep(nms) |