mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Make some more fixes
This change deletes mkfifo() so that GNU Make on Windows will work in parallel mode using its pipe-based implementation. There's an example called greenbean2 now, which shows how to build a scalable web server for Windows with 10k+ threads. The accuracy of clock_nanosleep is now significantly improved on Linux.
This commit is contained in:
parent
820c3599ed
commit
3b4dbc9fdd
22 changed files with 870 additions and 330 deletions
|
@ -61,6 +61,7 @@ void OnSig(int sig) {
|
|||
|
||||
void WaitUntilReady(void) {
|
||||
while (!ready) pthread_yield();
|
||||
ASSERT_EQ(0, errno);
|
||||
ASSERT_SYS(0, 0, usleep(1000));
|
||||
}
|
||||
|
||||
|
@ -84,6 +85,7 @@ TEST(pthread_kill, canInterruptSleepOperation) {
|
|||
signal(SIGUSR1, old);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void *ReadWorker(void *arg) {
|
||||
char buf[8] = {0};
|
||||
ready = true;
|
||||
|
@ -322,3 +324,4 @@ TEST(pthread_kill, canInterruptSigsuspend) {
|
|||
ASSERT_SYS(0, 0, sigprocmask(SIG_SETMASK, &oldss, 0));
|
||||
signal(SIGUSR1, oldsig);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue