ntdll/tests: Add tests for TpSimpleTryPost function. (try 2)

Sebastian Lackner sebastian at fds-team.de
Mon Mar 2 19:18:43 CST 2015


Uses a semaphore instead of the busy-looping.

The Sleep at the end was also removed, but there is a high risk of race-conditions in the threading implementation of Wine, which can lead to wrong exit codes from time to time (of course only after the Tp* functions are implemented). The race-condition is fixed with http://source.winehq.org/patches/data/109498.

---
 dlls/ntdll/tests/Makefile.in  |   1 +
 dlls/ntdll/tests/threadpool.c | 127 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)
 create mode 100644 dlls/ntdll/tests/threadpool.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-tests-Add-tests-for-TpSimpleTryPost-function.patch
Type: text/x-patch
Size: 5016 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150303/016f30a5/attachment.bin>


More information about the wine-patches mailing list