Changeset 966
- Timestamp:
- 03/22/08 11:37:22 (16 years ago)
- Files:
-
- trunk/libffado/src/libutil/PosixThread.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libutil/PosixThread.cpp
r939 r966 104 104 105 105 if ((res = pthread_attr_setinheritsched(&attributes, PTHREAD_EXPLICIT_SCHED))) { 106 debugError("Cannot request explicit scheduling for RT thread %d %s", res, strerror( errno));106 debugError("Cannot request explicit scheduling for RT thread %d %s", res, strerror(res)); 107 107 return -1; 108 108 } 109 109 if ((res = pthread_attr_setdetachstate(&attributes, PTHREAD_CREATE_JOINABLE))) { 110 debugError("Cannot request joinable thread creation for RT thread %d %s", res, strerror( errno));110 debugError("Cannot request joinable thread creation for RT thread %d %s", res, strerror(res)); 111 111 return -1; 112 112 } 113 113 if ((res = pthread_attr_setscope(&attributes, PTHREAD_SCOPE_SYSTEM))) { 114 debugError("Cannot set scheduling scope for RT thread %d %s", res, strerror( errno));114 debugError("Cannot set scheduling scope for RT thread %d %s", res, strerror(res)); 115 115 return -1; 116 116 } … … 119 119 120 120 //if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_RR))) { 121 debugError("Cannot set FIFO scheduling class for RT thread %d %s", res, strerror( errno));121 debugError("Cannot set FIFO scheduling class for RT thread %d %s", res, strerror(res)); 122 122 return -1; 123 123 } … … 127 127 128 128 if ((res = pthread_attr_setschedparam(&attributes, &rt_param))) { 129 debugError("Cannot set scheduling priority for RT thread %d %s", res, strerror( errno));129 debugError("Cannot set scheduling priority for RT thread %d %s", res, strerror(res)); 130 130 return -1; 131 131 } 132 132 133 133 if ((res = pthread_create(&fThread, &attributes, ThreadHandler, this))) { 134 debugError("Cannot set create thread %d %s", res, strerror( errno));134 debugError("Cannot set create thread %d %s", res, strerror(res)); 135 135 return -1; 136 136 } … … 141 141 142 142 if ((res = pthread_create(&fThread, 0, ThreadHandler, this))) { 143 debugError("Cannot set create thread %d %s", res, strerror( errno));143 debugError("Cannot set create thread %d %s", res, strerror(res)); 144 144 return -1; 145 145 }