Sync fixtures
provide.testkit.threading.sync_fixtures
¶
Thread synchronization test fixtures.
Fixtures for thread barriers, events, conditions, and other synchronization primitives.
Functions¶
thread_barrier
¶
Create a barrier for thread synchronization.
Returns:
| Type | Description |
|---|---|
Callable[[int, float | None], Barrier]
|
Function to create barriers for N threads. |
Source code in provide/testkit/threading/sync_fixtures.py
thread_condition
¶
Create condition variables for thread coordination.
Returns:
| Type | Description |
|---|---|
Callable[[Lock | None], Condition]
|
Function to create condition variables. |
Source code in provide/testkit/threading/sync_fixtures.py
thread_event
¶
Create thread events for signaling.
Returns:
| Type | Description |
|---|---|
Callable[[], Event]
|
Function to create thread events. |