summaryrefslogtreecommitdiff
path: root/lib/util/charset
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-05-10 09:08:21 -0400
committerAndreas Schneider <asn@samba.org>2011-08-10 18:14:04 +0200
commitb58d446c03f55203486fe7bb14f08b428efec6f3 (patch)
tree1a7bb12d3bf72d4c277a6ff2e072dcd80acd1c1a /lib/util/charset
parentf6ae58f24256a339eec3b17699b10ab11482e6c1 (diff)
downloadsamba-b58d446c03f55203486fe7bb14f08b428efec6f3.tar.gz
samba-b58d446c03f55203486fe7bb14f08b428efec6f3.tar.bz2
samba-b58d446c03f55203486fe7bb14f08b428efec6f3.zip
s3-prefork: better timing out semantics
If this child has no clients, let the lock functions block for 1 second, and then immediately reschedule the operation. This means we catch the lock as soon as possible on a free child. If, instead, we are already serving a client, we want to be non blocking, so we timeout immediately on getting the lock, and then we sleep a 1/10th of a second. This means that a busy child will be slightly slower on picking up the lock, but we won't block the existing client from communicating with us as we immediately react to activity on the already opened file handler. Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/util/charset')
0 files changed, 0 insertions, 0 deletions