forked from Imagelibrary/rtems
cleanup status vs. result
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_condattr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_condattr_init( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_condattr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_condattr_destroy( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_mutexattr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_mutexattr_init( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_mutexattr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_mutexattr_destroy( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_attr_init( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
int result;
|
||||
|
||||
result = pthread_attr_destroy( &attribute );
|
||||
}
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
int state;
|
||||
int result;
|
||||
|
||||
state = PTHREAD_CREATE_DETACHED;
|
||||
state = PTHREAD_CREATE_JOINABLE;
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
int state;
|
||||
int result;
|
||||
|
||||
result = pthread_attr_getdetachstate( &attribute, &state );
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
size_t size;
|
||||
int result;
|
||||
|
||||
size = PTHREAD_STACK_MIN;
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
|
||||
void test( void )
|
||||
{
|
||||
int result;
|
||||
pthread_attr_t attribute;
|
||||
size_t size;
|
||||
int result;
|
||||
|
||||
result = pthread_attr_getstacksize( &attribute, &size );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_t id_1 = 0;
|
||||
pthread_t id_2 = 0;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_equal( id_1, id_2 );
|
||||
result = pthread_equal( id_1, id_2 );
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ void test( void )
|
||||
pthread_t thread;
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
thread = 0;
|
||||
|
||||
@@ -38,5 +38,5 @@ void test( void )
|
||||
|
||||
param.sched_priority = 0;
|
||||
|
||||
status = pthread_setschedparam( thread, policy, ¶m );
|
||||
result = pthread_setschedparam( thread, policy, ¶m );
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@ void test( void )
|
||||
pthread_t thread;
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
thread = 0;
|
||||
|
||||
status = pthread_getschedparam( thread, &policy, ¶m );
|
||||
result = pthread_getschedparam( thread, &policy, ¶m );
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int contentionscope;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
contentionscope = PTHREAD_SCOPE_SYSTEM;
|
||||
contentionscope = PTHREAD_SCOPE_PROCESS;
|
||||
|
||||
status = pthread_attr_setscope( &attr, contentionscope );
|
||||
result = pthread_attr_setscope( &attr, contentionscope );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int contentionscope;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_attr_getscope( &attr, &contentionscope );
|
||||
result = pthread_attr_getscope( &attr, &contentionscope );
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int inheritsched;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
inheritsched = PTHREAD_INHERIT_SCHED;
|
||||
inheritsched = PTHREAD_EXPLICIT_SCHED;
|
||||
|
||||
status = pthread_attr_setinheritsched( &attr, inheritsched );
|
||||
result = pthread_attr_setinheritsched( &attr, inheritsched );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int inheritsched;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_attr_getinheritsched( &attr, &inheritsched );
|
||||
result = pthread_attr_getinheritsched( &attr, &inheritsched );
|
||||
}
|
||||
|
||||
@@ -23,11 +23,11 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int policy;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
policy = SCHED_FIFO;
|
||||
policy = SCHED_RR;
|
||||
policy = SCHED_OTHER;
|
||||
|
||||
status = pthread_attr_setschedpolicy( &attr, policy );
|
||||
result = pthread_attr_setschedpolicy( &attr, policy );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
int policy;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_attr_getschedpolicy( &attr, &policy );
|
||||
result = pthread_attr_getschedpolicy( &attr, &policy );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_attr_setschedparam( &attr, ¶m );
|
||||
result = pthread_attr_setschedparam( &attr, ¶m );
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ void test( void )
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_attr_getschedparam( &attr, ¶m );
|
||||
result = pthread_attr_getschedparam( &attr, ¶m );
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
void test( void )
|
||||
{
|
||||
pthread_t thread;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
thread = 0;
|
||||
status = pthread_detach( thread );
|
||||
result = pthread_detach( thread );
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ void test( void )
|
||||
pthread_t thread = 0;
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
policy = SCHED_OTHER;
|
||||
policy = SCHED_FIFO;
|
||||
@@ -32,5 +32,5 @@ void test( void )
|
||||
|
||||
param.sched_priority = 0;
|
||||
|
||||
status = pthread_setschedparam( thread, policy, ¶m );
|
||||
result = pthread_setschedparam( thread, policy, ¶m );
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ void test( void )
|
||||
pthread_t thread = 0;
|
||||
int policy;
|
||||
struct sched_param param;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_getschedparam( thread, &policy, ¶m );
|
||||
result = pthread_getschedparam( thread, &policy, ¶m );
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ void test( void )
|
||||
{
|
||||
pthread_t thread;
|
||||
void *value_ptr;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
thread = 0;
|
||||
|
||||
status = pthread_join( thread, &value_ptr );
|
||||
result = pthread_join( thread, &value_ptr );
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ void init_routine( void )
|
||||
void test( void )
|
||||
{
|
||||
pthread_once_t once_control = PTHREAD_ONCE_INIT;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
status = pthread_once( &once_control, init_routine );
|
||||
result = pthread_once( &once_control, init_routine );
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ void init_routine( void )
|
||||
void test( void )
|
||||
{
|
||||
pthread_t thread;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
thread = 0;
|
||||
status = pthread_cancel( thread );
|
||||
result = pthread_cancel( thread );
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ void test( void )
|
||||
{
|
||||
int state;
|
||||
int oldstate;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
state = PTHREAD_CANCEL_ENABLE;
|
||||
state = PTHREAD_CANCEL_DISABLE;
|
||||
|
||||
status = pthread_setcancelstate( state, &oldstate );
|
||||
result = pthread_setcancelstate( state, &oldstate );
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ void test( void )
|
||||
{
|
||||
int type;
|
||||
int oldtype;
|
||||
int status;
|
||||
int result;
|
||||
|
||||
type = PTHREAD_CANCEL_DEFERRED;
|
||||
type = PTHREAD_CANCEL_ASYNCHRONOUS;
|
||||
|
||||
status = pthread_setcanceltype( type, &oldtype );
|
||||
result = pthread_setcanceltype( type, &oldtype );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user