49 #define THREAD_PRIORITY 100
83 pthread_attr_t newThreadAttr;
85 struct sched_param schedparam;
88 rc = pthread_attr_init(&newThreadAttr);
90 #if defined(LINUX) || defined(OPSYS_SUN) || defined(AIX)
95 pthread_getschedparam(pthread_self(), &schedpolicy, &schedparam);
96 schedparam.sched_priority = 100;
98 #if defined(OPSYS_SUN)
101 rc = pthread_attr_setinheritsched(&newThreadAttr, PTHREAD_EXPLICIT_SCHED);
105 rc = pthread_attr_setschedpolicy(&newThreadAttr, SCHED_RR);
107 rc = pthread_attr_setschedparam(&newThreadAttr, &schedparam);
110 rc = pthread_attr_setstacksize(&newThreadAttr, stackSize);
118 rc = pthread_attr_destroy(&newThreadAttr);
168 return (
char *)base - stackSize;
void reportException(wholenumber_t error)
#define Error_System_service_service
static wholenumber_t yieldCounter()
static thread_id_t queryThreadID()
void create(RexxActivity *activity, size_t stackSize)
char * getStackBase(int32_t *base, size_t stackSize)
void * threadFnc(void *args)