from__future__importannotations# For type hinting before definition, ref: https://stackoverflow.com/questions/33533148/how-do-i-specify-that-the-return-type-of-a-method-is-the-same-as-the-class-itsel
from__future__importannotations# For type hinting before definition, ref: https://stackoverflow.com/questions/33533148/how-do-i-specify-that-the-return-type-of-a-method-is-the-same-as-the-class-itsel
importsys
importsys
importtraceback
# Require Python 3
# Require Python 3
ifsys.version_info[0]<3:
ifsys.version_info[0]<3:
raiseException("Must be using Python 3")
raiseException("Must be using Python 3")
...
@@ -105,10 +106,11 @@ class WorkerThread:
...
@@ -105,10 +106,11 @@ class WorkerThread:
whileTrue:
whileTrue:
tc=self._tc# Thread Coordinator, the overall master
tc=self._tc# Thread Coordinator, the overall master
tc.crossStepBarrier()# shared barrier first, INCLUDING the last one
tc.crossStepBarrier()# shared barrier first, INCLUDING the last one