summaryrefslogtreecommitdiff
path: root/build/make/ads2gas_apple.pl
diff options
context:
space:
mode:
authorAron Rosenberg <arosenberg@logitech.com>2011-05-06 00:10:37 -0400
committerJohn Koleszar <jkoleszar@google.com>2011-05-06 00:13:59 -0400
commiteeb811730362868458410ed96673ee75c2d79220 (patch)
treea70f756a7e37a0fab306561da4f910c245985593 /build/make/ads2gas_apple.pl
parenteb16f00cf25e54f08c5a9ec25a8780ca708a2c3a (diff)
downloadlibvpx-eeb811730362868458410ed96673ee75c2d79220.tar
libvpx-eeb811730362868458410ed96673ee75c2d79220.tar.gz
libvpx-eeb811730362868458410ed96673ee75c2d79220.tar.bz2
libvpx-eeb811730362868458410ed96673ee75c2d79220.zip
Fix semaphore emulation on Windows
The existing emulation of posix semaphores on Windows uses SetEvent() and WaitForSingleObject(), which implements a binary semaphore, not a counting semaphore as implemented by posix. This causes deadlock when used with the expected posix semantics. Instead, this patch uses the CreateSemaphore() and ReleaseSemaphore() calls (introduced in Windows 2000) which have the expected behavior. This patch also reverts commit eb16f00, which split a semaphore that was being used with counting semantics into two binary semaphores. That commit is unnecessary with corrected emulation. Change-Id: If400771536a27af4b0c3a31aa4c4e9ced89ce6a0
Diffstat (limited to 'build/make/ads2gas_apple.pl')
0 files changed, 0 insertions, 0 deletions