Commit Graph

6 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 bf302a0838 tests: hopefully fix sporadic test failures with condition var test 2019-05-03 18:03:16 +02:00
rdb 362ee33d32 tests: hopefully make notify_all() test more robust 2019-05-02 21:34:40 +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