Events
- class lib.infer.profile.Events(ready: list[Event])
Bases:
objectHolds thread events for communicating between main thread and plugins during benchmarking
- Parameters:
ready (list[threading.Event]) – List of events for each plugin in the pipeline to be tested
Attributes Summary
Methods Summary
set_ready(index)Set the ready event for the given index
Wait for all ready events to set their ready flag and clear the flag
Attributes Documentation
- continue_ = <threading.Event at 0x788f73e10e20: unset>
- start = <threading.Event at 0x788f73e409d0: unset>
- stop = <threading.Event at 0x788f73cd5130: unset>
Methods Documentation
- set_ready(index: int)
Set the ready event for the given index
- Parameters:
index (int) – The index of the ready event to set
- wait_ready() None
Wait for all ready events to set their ready flag and clear the flag
- Return type:
None
- set_ready(index: int)
Set the ready event for the given index
- Parameters:
index (int) – The index of the ready event to set
- wait_ready() None
Wait for all ready events to set their ready flag and clear the flag
- Return type:
None