-
Improvement
-
Resolution: Fixed
-
Major
-
3.1.0-dev
<naderman> well we could change acquire into try_lock and add a second method lock which throws an exception if it couldn't lock
<naderman> then you wouldn't need your own exception stuff
<naderman> try_lock would keep the behaviour of acquire(), ensure_lock() would throw an exception if unable to lock, return false if already locked and true if locked