r21879: Move process_blocking_lock_queue to a timed event.
commit7e31b8ce21de803ac1f8967967393341a3f44ac3
authorVolker Lendecke <vlendec@samba.org>
Mon, 19 Mar 2007 21:52:27 +0000 (19 21:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:42 +0000 (10 12:18 -0500)
treed4dcc88fb5e2da7c752e3fc739a01ad60b41462c
parente5741e27c4c22702c9f8b07877641fecc7eef39c
r21879: Move process_blocking_lock_queue to a timed event.

The idea is that we have blocking.c:brl_timeout as a timed
event that is present whenever we do have a blocking lock
pending. It fires brl_timeout_fn() which calls
process_blocking_lock_queue().

Whenever we make changes to blocking_lock_queue, we trigger
a recalc_brl_timeout() which sets a new brl_timout event if
necessary. This makes the call to
blocking_locks_timeout_ms() in setup_select_timeout()
unnecessary, this is implicitly done in
event_add_to_select_args() from the timed events.

Volker
source/smbd/blocking.c
source/smbd/process.c