mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
aa9b64eccf
We should avoid traversing a linked list within a thread without holding a mutex! Using a mutex would be very tricky as we'll likely deadlock with the mutexes at the raw pthreadpool layer. So we use somekind of spinlock using atomic_thread_fence in order to protect the access to job->state->glue->{tctx,ev} in pthreadpool_tevent_job_signal(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> |
||
---|---|---|
.. | ||
Makefile | ||
pthreadpool_pipe.c | ||
pthreadpool_pipe.h | ||
pthreadpool_sync.c | ||
pthreadpool_tevent.c | ||
pthreadpool_tevent.h | ||
pthreadpool.c | ||
pthreadpool.h | ||
tests_cmocka.c | ||
tests.c | ||
wscript_build |