diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-28 20:34:43 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-28 20:34:43 +0200 |
commit | 659c49ab31ac9f29adaf29b2eac4e8841ce5404e (patch) | |
tree | ed6701a478b362bb002329ee4242bf00c9a8a79c /src/log.h | |
parent | docker: add initial configuration (diff) | |
download | cimple-659c49ab31ac9f29adaf29b2eac4e8841ce5404e.tar.gz cimple-659c49ab31ac9f29adaf29b2eac4e8841ce5404e.zip |
server: notify all threads about shutting down
The problem is pthread_cond_destroy is unsafe to call if there're
threads waiting in pthread_cond_wait. I'm not sure this fix is enough:
what if the "broadcast" doesn't reach the threads until we call
pthread_cond_destroy? Does it even work that way? Idk
Diffstat (limited to 'src/log.h')
0 files changed, 0 insertions, 0 deletions