ComputationalRadiationPhysics / redGrapes

Resource-based, Declarative task-Graphs for Parallel, Event-driven Scheduling :grapes:
https://redgrapes.rtfd.io
Mozilla Public License 2.0
20 stars 5 forks source link

Fix idle/wake logic #62

Closed ikbuibui closed 3 months ago

ikbuibui commented 4 months ago

Fix the parser thread idle. Now it sleeps instantly when idle() is called, instead of busy waiting. Also change wakerID being workerID + 1. Now they are the same.