commit | 4e19f1914e49db4b7913ff0f5af8eec51caee875 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Tue Mar 09 05:19:59 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Tue Mar 09 05:19:59 2010 +0000 |
tree | 64db18658f59cb9411dc32d8c9a764131e8c82f8 | |
parent | 6c1ee214c447bef02c3aa091ff5706503d1b1004 [diff] |
cpp: non-blocking add for ThreadManager It's rare for the ThreadManager mutex to be contended, but it is possible. For nonblocking applications, it is necessary to have a strict timeout for the lock acquisition. With this change, that timeout is enforced. Also add timeout parameters to Mutex::lock and Guard::Guard to support this feature. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920679 13f79535-47bb-0310-9956-ffa450edef68