summaryrefslogtreecommitdiff
path: root/vp8/common
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2011-05-07 00:05:11 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-05-07 00:05:11 -0400
commit017e85cf58ab6903ba5b9f3e7e814c5371997a7d (patch)
tree077fe57cba2f66ddb2b7880c12c450a69adf2dbf /vp8/common
parent3a0f8e078374a26d2008455abf9d4ac7865626d4 (diff)
parent5c756005aaa17759485552edaea3e9ff99760bac (diff)
downloadlibvpx-017e85cf58ab6903ba5b9f3e7e814c5371997a7d.tar
libvpx-017e85cf58ab6903ba5b9f3e7e814c5371997a7d.tar.gz
libvpx-017e85cf58ab6903ba5b9f3e7e814c5371997a7d.tar.bz2
libvpx-017e85cf58ab6903ba5b9f3e7e814c5371997a7d.zip
Merge remote branch 'internal/upstream' into HEAD
Diffstat (limited to 'vp8/common')
-rw-r--r--vp8/common/threading.h4
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)