mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-05 22:21:01 +00:00
Introduce sigtimedwait() on Windows
This commit is contained in:
parent
37e2660c7f
commit
c260144843
17 changed files with 280 additions and 130 deletions
|
@ -59,11 +59,9 @@ void *TortureWorker(void *arg) {
|
|||
ASSERT_SYS(0, 0, sigprocmask(SIG_SETMASK, &ss, 0));
|
||||
ready = true;
|
||||
while (!done) {
|
||||
if (!IsWindows())
|
||||
pthread_kill(parent, SIGUSR1);
|
||||
pthread_kill(parent, SIGUSR1);
|
||||
usleep(1);
|
||||
if (!IsWindows())
|
||||
pthread_kill(parent, SIGUSR2);
|
||||
pthread_kill(parent, SIGUSR2);
|
||||
usleep(1);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue