rbkloss/DCCThread — pull request #2 by rbkloss (2014-09-06 19:28:22+00:00)
Title: Part5:

Tested with Part4 Test, it Ran OK. Did not break the code.

Added function for sleep support.
Changed dccthread_t to hold information about the remaining sleep time.
The sleep manager looks in the thread list for the thread with the minimal remaining sleep time and set a timer to trigger with that interval using siignal SIGUSR1. Changing the threadList to a Thread Heap would be better.