aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.h
Commit message (Collapse)AuthorAgeFilesLines
* More robust CScheduler unit testGavin Andresen2015-05-161-1/+14
| | | | | | | | | On a busy or slow system, the CScheduler unit test could fail because it assumed all threads would be done after a couple of milliseconds. Replace the hard-coded sleep with CScheduler stop() method that will cleanly exit the servicing threads when all tasks are completely finished.
* CScheduler class for lightweight task schedulingGavin Andresen2015-05-141-0/+70
Simple class to manage a task queue that is serviced by one or more threads.