264 |
int DiskThread::Main() { |
int DiskThread::Main() { |
265 |
dmsg(3,("Disk thread running\n")); |
dmsg(3,("Disk thread running\n")); |
266 |
while (true) { |
while (true) { |
267 |
|
#if !defined(WIN32) |
268 |
pthread_testcancel(); // mandatory for OSX |
pthread_testcancel(); // mandatory for OSX |
269 |
|
#endif |
270 |
IsIdle = true; // will be set to false if a stream got filled |
IsIdle = true; // will be set to false if a stream got filled |
271 |
|
|
272 |
// if there are ghost streams, delete them |
// if there are ghost streams, delete them |