Fix many thread and file descriptor issues on Windows

The greenbean web server now works nearly perfectly on Windows with over
1000 threads. But some synchronization issues still remain which prevent
us from going over nine thousand.
This commit is contained in:
Justine Tunney 2022-05-20 18:51:41 -07:00
parent 96781d0679
commit 7838edae88
32 changed files with 363 additions and 192 deletions

View file

@ -31,7 +31,7 @@
static int thepid;
static uint128_t thepool;
_Alignas(64) static char rand64_lock;
_Alignas(64) static int rand64_lock;
/**
* Returns nondeterministic random data.