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
importtraceback
# Require Python 3
ifsys.version_info[0]<3:
raiseException("Must be using Python 3")
...
...
@@ -105,10 +106,11 @@ class WorkerThread:
whileTrue:
tc=self._tc# Thread Coordinator, the overall master
tc.crossStepBarrier()# shared barrier first, INCLUDING the last one