]> sourceware.org Git - lvm2.git/commit
Use condition instead of sleep
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:05:20 +0000 (09:05 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:05:20 +0000 (09:05 +0000)
commitfea9b4eaa3a30e20b1af12bae509630462143c67
treee14f7033ee28a604cfc2050a46b1d3635bbffac2
parenteb050343b958e1217e7ac678b256ab1c356691c7
Use condition instead of sleep

Replace usleep with pthread condition to increase speed testing
(for simplicity just 1 condition for all locks).

Use thread mutex also for unlock resource (so it wakes up awaiting
threads)

Better check some error states and return error in fail case with
unlocked mutex.
WHATS_NEW
daemons/clvmd/clvmd-singlenode.c
This page took 0.033198 seconds and 5 git commands to generate.