summaryrefslogtreecommitdiffstats
path: root/tests/rangequery_tests.cpp
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-01-22 10:42:58 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2024-01-22 10:42:58 -0500
commit4d0d26bfef684566a371ca7c87ba84df52f25ccc (patch)
treef69984d6bfa0b79f29e00716219b34025350d41d /tests/rangequery_tests.cpp
parent97ddc19c2f57d54df2fe791ddedcbaf62fd1922e (diff)
downloaddynamic-extension-4d0d26bfef684566a371ca7c87ba84df52f25ccc.tar.gz
FIFOScheduler: added automake wakeup
Sometimes, when the max thread count is exceeded, it is possible for the scheduler to lock up. This is because the scheduler is only run when a new job is put into the queue, and so it is possible for a job to be blocked by thread limitations and be left sitting in the queue. If the main program is waiting on this job to finish before scheduling a new one, then the system deadlocks. I added a second background thread to the scheduler that wakes the scheduler up every 20us to resolve this and prevent these deadlocks.
Diffstat (limited to 'tests/rangequery_tests.cpp')
0 files changed, 0 insertions, 0 deletions