ConditionVar¶
from acron.core import ConditionVar
- class ConditionVar¶
Bases:
Bases:
ConditionVarDirectInheritance diagram
digraph inheritance3704413a39 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ConditionVar" [URL="acron.core.ConditionVar.html#acron.core.ConditionVar",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "ConditionVarDirect" -> "ConditionVar" [arrowsize=0.75,style=""]; "ConditionVarDirect" [URL="acron.core.ConditionVarDirect.html#acron.core.ConditionVarDirect",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ConditionVarDirect" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __init__()¶
You must pass in a Mutex to the condition variable constructor. This mutex may be shared by other condition variables, if desired. It is the caller’s responsibility to ensure the Mutex object does not destruct during the lifetime of the condition variable.
- get_mutex()¶
Returns the mutex associated with this condition variable.