]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rados/client: fix waiting on the condition variable more efficient. 9939/head
authorYan Jun <yan.jun8@zte.com.cn>
Mon, 27 Jun 2016 04:28:25 +0000 (12:28 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 28 Jun 2016 11:40:02 +0000 (19:40 +0800)
commitd1aa392446f0657620e7ef26e00ea3a694bb7c8d
treee81724d641a24a79e421cbc8faf98e39b9a5ae29
parent63b82de32fa7e02ee519eede500268ee2d81ca3c
rados/client: fix waiting on the condition variable more efficient.

Maybe we can simply use "cond.Wait" if timeout is zero, so
that it wait and sleep forever until being waked up by
cond.Signal, which seems to be more efficient.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/librados/RadosClient.cc