Closed poldy closed 1 year ago
Thanks for reporting that! I've added your fix with some minor modifications.
(PTHREAD_MUTEX_INTIALIZER
should probably have a #define in the runtime, but that's a separate issue -- quite a bit of pthreads specific code has leaked out of the runtime anyway.)
I preferred this to extras/posix because it supports IPv6. I've tested it on macOS
Although the use of PTHREAD_MUTEX_INITIALIZER is correct, it may not fit the desired style. Could introduce a #define alongside MR_MUTEX_ATTR if preferred.