Changeset 445 for trunk/libffado/src/libutil/PosixThread.cpp
- Timestamp:
- 04/02/07 12:35:17 (17 years ago)
- Files:
-
- trunk/libffado/src/libutil/PosixThread.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libutil/PosixThread.cpp
r419 r445 1 1 /* 2 Modifications for F reebob (C) 2006,Pieter Palmers2 Modifications for FFADO by Pieter Palmers 3 3 4 4 Copied from the jackd/jackdmp sources … … 6 6 a jackd backend. 7 7 8 Copyright (C) 2001 Paul Davis 8 Copyright (C) 2001 Paul Davis 9 9 Copyright (C) 2004-2006 Grame 10 10 … … 54 54 55 55 // If Init succeed start the thread loop 56 56 bool res = true; 57 57 while (obj->fRunning && res) { 58 58 res = runnable->Execute(); 59 59 //pthread_testcancel(); 60 60 } 61 61 … … 67 67 { 68 68 int res; 69 69 fRunning = true; 70 70 71 71 if (fRealTime) { … … 121 121 return -1; 122 122 } 123 123 124 124 return 0; 125 125 } … … 142 142 { 143 143 if (fThread) { // If thread has been started 144 145 144 debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Stop\n"); 145 void* status; 146 146 fRunning = false; // Request for the thread to stop 147 147 pthread_join(fThread, &status); 148 148 return 0; 149 149 } else {