- Timestamp:
- Apr 13, 2016 6:24:48 AM (9 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r5012 r5277 1126 1126 #if (defined(PJ_LINUX) && PJ_LINUX!=0) || \ 1127 1127 defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE) 1128 rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ FAST_NP);1128 rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL); 1129 1129 #elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \ 1130 1130 defined(PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE) … … 1136 1136 #if (defined(PJ_LINUX) && PJ_LINUX!=0) || \ 1137 1137 defined(PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE) 1138 rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE _NP);1138 rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 1139 1139 #elif (defined(PJ_RTEMS) && PJ_RTEMS!=0) || \ 1140 1140 defined(PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE) -
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r5241 r5277 1137 1137 return; 1138 1138 } 1139 tp. __sched_priority = max_prio;1139 tp.sched_priority = max_prio; 1140 1140 1141 1141 rc = sched_setscheduler(0, POLICY, &tp); … … 1146 1146 1147 1147 PJ_LOG(4, (THIS_FILE, "New process policy=%d, priority=%d", 1148 policy, tp. __sched_priority));1148 policy, tp.sched_priority)); 1149 1149 1150 1150 /* … … 1159 1159 1160 1160 PJ_LOG(4, (THIS_FILE, "Old thread policy=%d, priority=%d", 1161 policy, tp. __sched_priority));1161 policy, tp.sched_priority)); 1162 1162 1163 1163 policy = POLICY; 1164 tp. __sched_priority = max_prio;1164 tp.sched_priority = max_prio; 1165 1165 1166 1166 rc = pthread_setschedparam(pthread_self(), policy, &tp); … … 1172 1172 1173 1173 PJ_LOG(4, (THIS_FILE, "New thread policy=%d, priority=%d", 1174 policy, tp. __sched_priority));1174 policy, tp.sched_priority)); 1175 1175 } 1176 1176
Note: See TracChangeset
for help on using the changeset viewer.