Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | threads: add a dispatch queue thing | wm4 | 2014-02-10 | 1 | -0/+21 |
| | | | | | | Makes working with the (still) single-threaded playback thread easier. Might be reusable for other stuff. | ||||
* | threads: add function to calculate deadline for timed waits | wm4 | 2014-01-31 | 1 | -0/+2 |
| | | | | | | | | | | | | Usually, you have to call pthread_cond_timedwait() in a loop (because it can wake up sporadically). If this function is used by another higher level function, which uses a relative timeout, we actually have to reduce the timeout on each iteration - or, simpler, compute the "deadline" at the beginning of the function, and always pass the same absolute time to the waiting function. Might be unsafe if the system time is changed. On the other hand, this is a fundamental race condition with these APIs. | ||||
* | threads: add wrapper for initializing recursive mutexes | wm4 | 2014-01-31 | 1 | -0/+2 |
| | | | | Damn this overly verbose pthread API. | ||||
* | stream: split out pthread helper function | wm4 | 2013-11-17 | 1 | -0/+9 |
Also split the function itself into 3. |