Changeset 966

Show
Ignore:
Timestamp:
03/22/08 11:37:22 (16 years ago)
Author:
ppalmers
Message:

fixes ticket #83

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/PosixThread.cpp

    r939 r966  
    104104 
    105105        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)); 
    107107            return -1; 
    108108        } 
    109109        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)); 
    111111            return -1; 
    112112        } 
    113113        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)); 
    115115            return -1; 
    116116        } 
     
    119119 
    120120        //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)); 
    122122            return -1; 
    123123        } 
     
    127127 
    128128        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)); 
    130130            return -1; 
    131131        } 
    132132 
    133133        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)); 
    135135            return -1; 
    136136        } 
     
    141141 
    142142        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)); 
    144144            return -1; 
    145145        }