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

SchedulingContext is probably destroyed incorrectly #6

Closed sbastrakov closed 6 years ago

sbastrakov commented 6 years ago

I experience smth like an infinite loop when a SchedulingContext object is destroyed. It seems the problem is that ThreadDispatcher::~ThreadDispatcher() called inside the destructor has a loop to finalize all jobs, but empty() always returns false, even if no jobs has been added at all.

I've tried only on Visual Studio. This behaviour is present e.g. in example 2_functions, when the program does what it should, but in the end does not really exit and gets stuck.

michaelsippel commented 6 years ago

SchedulingContext is currently beeing reworked on the topic-scheduler branch.

michaelsippel commented 6 years ago

now merged