From 6b067c4eda7be6049db68aec9c5ed3b79e10da85 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 4 Jun 1996 19:15:28 +0000 Subject: renamed the local variable attrp to the_attr in pthread_create --- c/src/exec/posix/src/pthread.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'c/src/exec/posix/src/pthread.c') diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c index c855ae9c2a..37df7c5080 100644 --- a/c/src/exec/posix/src/pthread.c +++ b/c/src/exec/posix/src/pthread.c @@ -580,7 +580,7 @@ int pthread_create( void *arg ) { - const pthread_attr_t *attrp; + const pthread_attr_t *the_attr; Priority_Control core_priority; boolean is_timesliced; boolean is_fp; @@ -591,9 +591,9 @@ int pthread_create( int schedpolicy = SCHED_RR; struct sched_param schedparams; - attrp = (attr) ? attr : &_POSIX_Threads_Default_attributes; + the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; - if ( !attrp->is_initialized ) + if ( !the_attr->is_initialized ) return EINVAL; /* @@ -620,15 +620,15 @@ int pthread_create( * attributes structure. */ - switch ( attrp->inheritsched ) { + switch ( the_attr->inheritsched ) { case PTHREAD_INHERIT_SCHED: api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; schedpolicy = api->schedpolicy; schedparams = api->Schedule; break; case PTHREAD_EXPLICIT_SCHED: - schedpolicy = attrp->schedpolicy; - schedparams = attrp->schedparam; + schedpolicy = the_attr->schedpolicy; + schedparams = the_attr->schedparam; break; } @@ -638,10 +638,10 @@ int pthread_create( is_timesliced = FALSE; - if ( !_POSIX_Priority_Is_valid( attrp->schedparam.sched_priority ) ) + if ( !_POSIX_Priority_Is_valid( the_attr->schedparam.sched_priority ) ) return EINVAL; - core_priority = _POSIX_Priority_To_core( attrp->schedparam.sched_priority ); + core_priority = _POSIX_Priority_To_core(the_attr->schedparam.sched_priority); switch ( schedpolicy ) { case SCHED_OTHER: @@ -693,8 +693,8 @@ int pthread_create( status = _Thread_Initialize( &_POSIX_Threads_Information, the_thread, - attrp->stackaddr, - attrp->stacksize, + the_attr->stackaddr, + the_attr->stacksize, is_fp, core_priority, TRUE, /* preemptible */ @@ -716,7 +716,7 @@ int pthread_create( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; - api->Attributes = *attrp; + api->Attributes = *the_attr; api->detachstate = attr->detachstate; _Thread_queue_Initialize( -- cgit v1.2.3