s3: Implement tevent_barrier
commitb23b35755750589b201a3f4e85521459f575945c
authorVolker Lendecke <vl@samba.org>
Tue, 3 Apr 2012 13:26:22 +0000 (3 15:26 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Apr 2012 08:21:02 +0000 (17 10:21 +0200)
tree51133a6a732acd90809d9a327181721c51550cac
parentd705bae65b70f6fcc711bdb72a1c2b55395f7d6c
s3: Implement tevent_barrier

This will help notify torture tests: A tevent barrier can be waited on with
tevent_barrier_wait_send/recv. The barrier is initialized with a number of
requests that it will accept waiting. When that number is reached, all those
requests will be released and their callback will be called. The barrier will
be free for re-use again.
source3/Makefile.in
source3/lib/tevent_barrier.c [new file with mode: 0644]
source3/lib/tevent_barrier.h [new file with mode: 0644]