Commit Graph

4 Commits

Author SHA1 Message Date
rdb c4a01ac564 pipeline: give Mutex and ReMutex more Pythonic semantics
This allows using mutices in with-blocks and wraps up the functionality of acquire() and try_acquire() into a single acquire(blocking=True).

Furthermore, the GIL is no longer released in cases of no contention.
2019-05-12 20:58:13 +02:00
rdb 3f1bd1744b tests: add threaded unit tests for Mutex and ConditionVar 2019-02-07 00:19:15 +01:00
rdb 1a94e65b17 tests: fix mutex test on win32 where mutexes are always reentrant 2018-09-04 23:01:41 +02:00
rdb 171ba35f26 tests: add some simple smoke tests for Mutex and ReMutex 2018-09-04 12:58:48 +02:00