summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/scanf.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-23 14:15:20 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-07-23 14:15:20 +0000
commit16efa64721b0dd9cfc699ce4b3928a8e7644b980 (patch)
treec345d7373cd6b5e3f8fd3ce559ff2211a7d7f534 /newlib/libc/stdio/scanf.c
parent6c1f4d7d644d6199f5ecc6c542addda657cad600 (diff)
downloadcygnal-16efa64721b0dd9cfc699ce4b3928a8e7644b980.tar.gz
cygnal-16efa64721b0dd9cfc699ce4b3928a8e7644b980.tar.bz2
cygnal-16efa64721b0dd9cfc699ce4b3928a8e7644b980.zip
* ntdll.h (struct _SEMAPHORE_BASIC_INFORMATION): Define.
(enum _SEMAPHORE_INFORMATION_CLASS): Define. (NtQuerySemaphore): Declare. * thread.h (class semaphore): Add member startvalue. (semaphore::fixup_before_fork): New inline method. (semaphore::_fixup_before_fork): Declare. * thread.cc (MTinterface::fixup_before_fork): Additionally call semaphore::fixup_before_fork. (semaphore::semaphore): Set currentvalue to -1. Set startvalue to incoming initializer value. (semaphore::_getvalue): Just query semaphore using NtQuerySemaphore rather then using WFSO/Release. (semaphore::_post): Drop setting currentvalue. It's not thread-safe. (semaphore::_trywait): Ditto. (semaphore::_timedwait): Ditto. (semaphore::_wait): Ditto. (semaphore::_fixup_before_fork): New method, setting currentvalue from actual windows semaphore right before fork. (semaphore::_fixup_after_fork): Drop kludge from 2013-07-10. Drop FIXME comment.
Diffstat (limited to 'newlib/libc/stdio/scanf.c')
0 files changed, 0 insertions, 0 deletions