threadpool
threadpool copied to clipboard
Destroying a locked mutex is undefined behaviour
https://linux.die.net/man/3/pthread_mutex_destroy
Attempting to destroy a locked mutex results in undefined behavior.
Bug found with ThreadSanitizer