Make improvements

- Improve compatibility with Blink virtual machine
- Add non-POSIX APIs for joining threads and signal masks
- Never ever use anything except 32-bit integers for atomics
- Add some `#undef` statements to workaround `ctags` problems
This commit is contained in:
Justine Tunney 2022-11-10 21:52:47 -08:00
parent b46ac13504
commit f2af97711b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
114 changed files with 902 additions and 363 deletions

View file

@ -42,6 +42,7 @@ static const struct ContentTypeExtension {
{"css", "text/css"}, //
{"csv", "text/csv"}, //
{"diff", "text/plain"}, //
{"diff", "text/plain"}, //
{"doc", "application/msword"}, //
{"epub", "application/epub+zip"}, //
{"gif", "image/gif"}, //
@ -71,6 +72,7 @@ static const struct ContentTypeExtension {
{"ogv", "video/ogg"}, //
{"ogx", "application/ogg"}, //
{"otf", "font/otf"}, //
{"patch", "text/plain"}, //
{"pdf", "application/pdf"}, //
{"png", "image/png"}, //
{"rar", "application/vnd.rar"}, //

View file

@ -299,8 +299,8 @@ union TokenBucket {
struct Worker {
pthread_t th;
atomic_int msgcount;
atomic_bool shutdown;
atomic_bool connected;
atomic_int shutdown;
atomic_int connected;
struct timespec startread;
} * g_worker;