Differences From Artifact [bf9bfb4388]:
- File
src/threading_pthread.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 5126) [annotate] [blame] [check-ins using]
To Artifact [3649baa422]:
- File src/threading_pthread.m — part of check-in [a65818a67f] at 2016-01-05 17:15:46 on branch trunk — configure: Check for pthread_attr_setinheritsched (user: js, size: 5174) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | minPrio = sched_get_priority_min(policy); maxPrio = sched_get_priority_max(policy); param.sched_priority = (float)minPrio + attr->priority * (maxPrio - minPrio); if (pthread_attr_setinheritsched(&pattr, PTHREAD_EXPLICIT_SCHED) != 0) return false; if (pthread_attr_setschedparam(&pattr, ¶m) != 0) return false; if (attr->stackSize > 0) { if (pthread_attr_setstacksize(&pattr, attr->stackSize) != 0) | > > | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | minPrio = sched_get_priority_min(policy); maxPrio = sched_get_priority_max(policy); param.sched_priority = (float)minPrio + attr->priority * (maxPrio - minPrio); #ifdef HAVE_PTHREAD_ATTR_SETINHERITSCHED if (pthread_attr_setinheritsched(&pattr, PTHREAD_EXPLICIT_SCHED) != 0) return false; #endif if (pthread_attr_setschedparam(&pattr, ¶m) != 0) return false; if (attr->stackSize > 0) { if (pthread_attr_setstacksize(&pattr, attr->stackSize) != 0) |
︙ | ︙ |