forked from Imagelibrary/rtems
Eliminate TRUE/FALSE.
This commit is contained in:
@@ -33,9 +33,9 @@ int pthread_barrierattr_destroy(
|
||||
pthread_barrierattr_t *attr
|
||||
)
|
||||
{
|
||||
if ( !attr || attr->is_initialized == FALSE )
|
||||
if ( !attr || attr->is_initialized == false )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = FALSE;
|
||||
attr->is_initialized = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ int pthread_barrierattr_init(
|
||||
if ( !attr )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = TRUE;
|
||||
attr->is_initialized = true;
|
||||
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ void _POSIX_Condition_variables_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Condition_variables_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -34,9 +34,9 @@ int pthread_condattr_destroy(
|
||||
pthread_condattr_t *attr
|
||||
)
|
||||
{
|
||||
if ( !attr || attr->is_initialized == FALSE )
|
||||
if ( !attr || attr->is_initialized == false )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = FALSE;
|
||||
attr->is_initialized = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -33,5 +33,5 @@ int pthread_cond_broadcast(
|
||||
pthread_cond_t *cond
|
||||
)
|
||||
{
|
||||
return _POSIX_Condition_variables_Signal_support( cond, TRUE );
|
||||
return _POSIX_Condition_variables_Signal_support( cond, true );
|
||||
}
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
*/
|
||||
|
||||
const pthread_condattr_t _POSIX_Condition_variables_Default_attributes = {
|
||||
TRUE, /* is_initialized */
|
||||
true, /* is_initialized */
|
||||
PTHREAD_PROCESS_PRIVATE /* process_shared */
|
||||
};
|
||||
|
||||
@@ -33,5 +33,5 @@ int pthread_cond_signal(
|
||||
pthread_cond_t *cond
|
||||
)
|
||||
{
|
||||
return _POSIX_Condition_variables_Signal_support( cond, FALSE );
|
||||
return _POSIX_Condition_variables_Signal_support( cond, false );
|
||||
}
|
||||
|
||||
@@ -56,10 +56,10 @@ int pthread_cond_timedwait(
|
||||
return EINVAL;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
already_timedout = TRUE;
|
||||
already_timedout = true;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
already_timedout = FALSE;
|
||||
already_timedout = false;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,6 @@ int pthread_cond_wait(
|
||||
cond,
|
||||
mutex,
|
||||
THREAD_QUEUE_WAIT_FOREVER,
|
||||
FALSE
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -47,11 +47,11 @@ void _POSIX_Key_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Keys_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -69,7 +69,7 @@ int pthread_key_create(
|
||||
if (_Objects_Information_table[ the_api ][ 1 ] == NULL )
|
||||
_Internal_error_Occurred(
|
||||
INTERNAL_ERROR_CORE,
|
||||
TRUE,
|
||||
true,
|
||||
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
|
||||
);
|
||||
#endif
|
||||
@@ -96,7 +96,7 @@ int pthread_key_create(
|
||||
|
||||
}
|
||||
|
||||
the_key->is_active = TRUE;
|
||||
the_key->is_active = true;
|
||||
|
||||
_Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 );
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ int pthread_key_delete(
|
||||
case OBJECTS_LOCAL:
|
||||
_Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
|
||||
|
||||
the_key->is_active = FALSE;
|
||||
the_key->is_active = false;
|
||||
|
||||
for ( the_api = 1;
|
||||
the_api <= OBJECTS_APIS_LAST;
|
||||
|
||||
@@ -52,7 +52,7 @@ void _POSIX_Keys_Run_destructors(
|
||||
|
||||
for ( ; ; ) {
|
||||
|
||||
are_all_null = TRUE;
|
||||
are_all_null = true;
|
||||
|
||||
for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) {
|
||||
|
||||
@@ -64,12 +64,12 @@ void _POSIX_Keys_Run_destructors(
|
||||
if ( value ) {
|
||||
(*the_key->destructor)( value );
|
||||
if ( the_key->Values[ thread_api ][ thread_index ] )
|
||||
are_all_null = FALSE;
|
||||
are_all_null = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( are_all_null == TRUE )
|
||||
if ( are_all_null == true )
|
||||
return;
|
||||
|
||||
iterations++;
|
||||
|
||||
@@ -299,7 +299,7 @@ process_it:
|
||||
the_thread->do_post_task_switch_extension = true;
|
||||
|
||||
/*
|
||||
* Returns TRUE if the signal was synchronously given to a thread
|
||||
* Returns true if the signal was synchronously given to a thread
|
||||
* blocked waiting for the signal.
|
||||
*/
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ void _POSIX_Message_queue_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Message_queue_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
@@ -76,11 +76,11 @@ void _POSIX_Message_queue_Manager_initialization(void)
|
||||
Configuration_POSIX_API.maximum_message_queues,
|
||||
sizeof( POSIX_Message_queue_Control_fd ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
NAME_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -103,9 +103,9 @@ int _POSIX_Message_queue_Create_support(
|
||||
}
|
||||
|
||||
the_mq->process_shared = pshared;
|
||||
the_mq->named = TRUE;
|
||||
the_mq->named = true;
|
||||
the_mq->open_count = 1;
|
||||
the_mq->linked = TRUE;
|
||||
the_mq->linked = true;
|
||||
|
||||
/*
|
||||
* Make a copy of the user's string for name just in case it was
|
||||
|
||||
@@ -137,7 +137,7 @@ mqd_t mq_open(
|
||||
|
||||
status = _POSIX_Message_queue_Create_support(
|
||||
name,
|
||||
TRUE, /* shared across processes */
|
||||
true, /* shared across processes */
|
||||
attr,
|
||||
&the_mq
|
||||
);
|
||||
|
||||
@@ -58,7 +58,7 @@ ssize_t mq_receive(
|
||||
msg_ptr,
|
||||
msg_len,
|
||||
msg_prio,
|
||||
TRUE,
|
||||
true,
|
||||
THREAD_QUEUE_WAIT_FOREVER
|
||||
);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ ssize_t _POSIX_Message_queue_Receive_support(
|
||||
* A timed receive with a bad time will do a poll regardless.
|
||||
*/
|
||||
if ( wait )
|
||||
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? FALSE : TRUE;
|
||||
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
|
||||
else
|
||||
do_wait = wait;
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ int mq_send(
|
||||
msg_ptr,
|
||||
msg_len,
|
||||
msg_prio,
|
||||
TRUE,
|
||||
true,
|
||||
THREAD_QUEUE_WAIT_FOREVER
|
||||
);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ int _POSIX_Message_queue_Send_support(
|
||||
* A timed receive with a bad time will do a poll regardless.
|
||||
*/
|
||||
if ( wait )
|
||||
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? FALSE : TRUE;
|
||||
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
|
||||
else
|
||||
do_wait = wait;
|
||||
|
||||
|
||||
@@ -72,11 +72,11 @@ ssize_t mq_timedreceive(
|
||||
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
do_wait = FALSE;
|
||||
do_wait = false;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
default: /* only to silence warnings */
|
||||
do_wait = TRUE;
|
||||
do_wait = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,11 +72,11 @@ int mq_timedsend(
|
||||
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
do_wait = FALSE;
|
||||
do_wait = false;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
default: /* only to silence warnings */
|
||||
do_wait = TRUE;
|
||||
do_wait = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ int mq_unlink(
|
||||
_Objects_Get_index( the_mq_id )
|
||||
);
|
||||
|
||||
the_mq->linked = FALSE;
|
||||
the_mq->linked = false;
|
||||
_POSIX_Message_queue_Namespace_remove( the_mq );
|
||||
_POSIX_Message_queue_Delete( the_mq );
|
||||
|
||||
|
||||
@@ -48,11 +48,11 @@ void _POSIX_Mutex_Manager_initialization(void)
|
||||
* Since the maximum priority is run-time configured, this
|
||||
* structure cannot be initialized statically.
|
||||
*/
|
||||
default_attr->is_initialized = TRUE;
|
||||
default_attr->is_initialized = true;
|
||||
default_attr->process_shared = PTHREAD_PROCESS_PRIVATE;
|
||||
default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY;
|
||||
default_attr->protocol = PTHREAD_PRIO_NONE;
|
||||
default_attr->recursive = FALSE;
|
||||
default_attr->recursive = false;
|
||||
|
||||
/*
|
||||
* Initialize the POSIX mutex object class information structure.
|
||||
@@ -65,11 +65,11 @@ void _POSIX_Mutex_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Mutex_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -35,6 +35,6 @@ int pthread_mutexattr_destroy(
|
||||
if ( !attr || !attr->is_initialized )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = FALSE;
|
||||
attr->is_initialized = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ int pthread_mutex_init(
|
||||
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
|
||||
else
|
||||
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
|
||||
the_mutex_attr->only_owner_release = TRUE;
|
||||
the_mutex_attr->only_owner_release = true;
|
||||
the_mutex_attr->priority_ceiling =
|
||||
_POSIX_Priority_To_core( the_attr->prio_ceiling );
|
||||
the_mutex_attr->discipline = the_discipline;
|
||||
|
||||
@@ -37,5 +37,5 @@ int pthread_mutex_lock(
|
||||
pthread_mutex_t *mutex
|
||||
)
|
||||
{
|
||||
return _POSIX_Mutex_Lock_support( mutex, TRUE, THREAD_QUEUE_WAIT_FOREVER );
|
||||
return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER );
|
||||
}
|
||||
|
||||
@@ -61,10 +61,10 @@ int pthread_mutex_timedlock(
|
||||
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
do_wait = FALSE;
|
||||
do_wait = false;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
do_wait = TRUE;
|
||||
do_wait = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,5 +37,5 @@ int pthread_mutex_trylock(
|
||||
pthread_mutex_t *mutex
|
||||
)
|
||||
{
|
||||
return _POSIX_Mutex_Lock_support( mutex, FALSE, THREAD_QUEUE_WAIT_FOREVER );
|
||||
return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER );
|
||||
}
|
||||
|
||||
@@ -46,11 +46,11 @@ void _POSIX_Barrier_Manager_initialization(void)
|
||||
Configuration_POSIX_API.maximum_barriers,
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Barrier_Control ),/* size of this object's control block */
|
||||
TRUE, /* TRUE if the name is a string */
|
||||
true, /* true if the name is a string */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -34,11 +34,11 @@ void _POSIX_RWLock_Manager_initialization(void)
|
||||
Configuration_POSIX_API.maximum_rwlocks,
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_RWLock_Control ), /* size of this object's control block */
|
||||
TRUE, /* TRUE if the name is a string */
|
||||
true, /* true if the name is a string */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -52,7 +52,7 @@ int pthread_rwlock_rdlock(
|
||||
_CORE_RWLock_Obtain_for_reading(
|
||||
&the_rwlock->RWLock,
|
||||
*rwlock,
|
||||
TRUE, /* we are willing to wait forever */
|
||||
true, /* we are willing to wait forever */
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
@@ -63,10 +63,10 @@ int pthread_rwlock_timedrdlock(
|
||||
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
do_wait = FALSE;
|
||||
do_wait = false;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
do_wait = TRUE;
|
||||
do_wait = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,10 +63,10 @@ int pthread_rwlock_timedwrlock(
|
||||
case POSIX_ABSOLUTE_TIMEOUT_INVALID:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST:
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_NOW:
|
||||
do_wait = FALSE;
|
||||
do_wait = false;
|
||||
break;
|
||||
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
|
||||
do_wait = TRUE;
|
||||
do_wait = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ int pthread_rwlock_tryrdlock(
|
||||
_CORE_RWLock_Obtain_for_reading(
|
||||
&the_rwlock->RWLock,
|
||||
*rwlock,
|
||||
FALSE, /* do not wait for the rwlock */
|
||||
false, /* do not wait for the rwlock */
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
@@ -52,7 +52,7 @@ int pthread_rwlock_trywrlock(
|
||||
_CORE_RWLock_Obtain_for_writing(
|
||||
&the_rwlock->RWLock,
|
||||
*rwlock,
|
||||
FALSE, /* we are not willing to wait */
|
||||
false, /* we are not willing to wait */
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
@@ -52,7 +52,7 @@ int pthread_rwlock_wrlock(
|
||||
_CORE_RWLock_Obtain_for_writing(
|
||||
&the_rwlock->RWLock,
|
||||
*rwlock,
|
||||
TRUE, /* do not timeout -- wait forever */
|
||||
true, /* do not timeout -- wait forever */
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
@@ -120,7 +120,7 @@ bool _POSIX_signals_Unblock_thread(
|
||||
}
|
||||
} else if ( the_thread->current_state == STATES_READY ) {
|
||||
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
|
||||
_ISR_Signals_to_thread_executing = TRUE;
|
||||
_ISR_Signals_to_thread_executing = true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -46,11 +46,11 @@ void _POSIX_Spinlock_Manager_initialization(void)
|
||||
Configuration_POSIX_API.maximum_spinlocks,
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */
|
||||
TRUE, /* TRUE if the name is a string */
|
||||
true, /* true if the name is a string */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -49,7 +49,7 @@ int pthread_spin_lock(
|
||||
switch ( location ) {
|
||||
|
||||
case OBJECTS_LOCAL:
|
||||
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, TRUE, 0 );
|
||||
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 );
|
||||
_Thread_Enable_dispatch();
|
||||
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ int pthread_spin_trylock(
|
||||
switch ( location ) {
|
||||
|
||||
case OBJECTS_LOCAL:
|
||||
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, FALSE, 0 );
|
||||
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 );
|
||||
_Thread_Enable_dispatch();
|
||||
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
*/
|
||||
|
||||
const pthread_attr_t _POSIX_Threads_Default_attributes = {
|
||||
TRUE, /* is_initialized */
|
||||
true, /* is_initialized */
|
||||
NULL, /* stackaddr */
|
||||
0, /* stacksize -- will be adjusted to minimum */
|
||||
PTHREAD_SCOPE_PROCESS, /* contentionscope */
|
||||
@@ -91,7 +91,7 @@ void _POSIX_Threads_Sporadic_budget_TSR(
|
||||
|
||||
if ( the_thread->resource_count == 0 ||
|
||||
the_thread->current_priority > new_priority )
|
||||
_Thread_Change_priority( the_thread, new_priority, TRUE );
|
||||
_Thread_Change_priority( the_thread, new_priority, true );
|
||||
|
||||
ticks = _Timespec_To_ticks( &api->schedparam.ss_replenish_period );
|
||||
|
||||
@@ -128,7 +128,7 @@ void _POSIX_Threads_Sporadic_budget_callout(
|
||||
|
||||
if ( the_thread->resource_count == 0 ||
|
||||
the_thread->current_priority > new_priority )
|
||||
_Thread_Change_priority( the_thread, new_priority, TRUE );
|
||||
_Thread_Change_priority( the_thread, new_priority, true );
|
||||
}
|
||||
|
||||
/*PAGE
|
||||
@@ -323,7 +323,7 @@ void _POSIX_Threads_Manager_initialization(void)
|
||||
|
||||
#if 0
|
||||
if ( user_threads == NULL || number_of_initialization_threads == 0 )
|
||||
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, EINVAL );
|
||||
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, EINVAL );
|
||||
#endif
|
||||
|
||||
_Objects_Initialize_information(
|
||||
@@ -334,11 +334,11 @@ void _POSIX_Threads_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( Thread_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -27,6 +27,6 @@ int pthread_attr_destroy(
|
||||
if ( !attr || !attr->is_initialized )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = FALSE;
|
||||
attr->is_initialized = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -164,9 +164,9 @@ int pthread_create(
|
||||
|
||||
|
||||
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
||||
is_fp = TRUE;
|
||||
is_fp = true;
|
||||
#else
|
||||
is_fp = FALSE;
|
||||
is_fp = false;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -199,7 +199,7 @@ int pthread_create(
|
||||
_POSIX_Threads_Ensure_minimum_stack(the_attr->stacksize),
|
||||
is_fp,
|
||||
core_priority,
|
||||
TRUE, /* preemptible */
|
||||
true, /* preemptible */
|
||||
budget_algorithm,
|
||||
budget_callout,
|
||||
0, /* isr level */
|
||||
|
||||
@@ -82,7 +82,7 @@ void _POSIX_Threads_Initialize_user_threads_body(void)
|
||||
NULL
|
||||
);
|
||||
if ( status )
|
||||
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, status );
|
||||
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ int pthread_kill(
|
||||
the_thread->do_post_task_switch_extension = true;
|
||||
|
||||
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
|
||||
_ISR_Signals_to_thread_executing = TRUE;
|
||||
_ISR_Signals_to_thread_executing = true;
|
||||
}
|
||||
_Thread_Enable_dispatch();
|
||||
return 0;
|
||||
|
||||
@@ -34,8 +34,8 @@ int pthread_once(
|
||||
rtems_mode saveMode;
|
||||
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
|
||||
if ( !once_control->init_executed ) {
|
||||
once_control->is_initialized = TRUE;
|
||||
once_control->init_executed = TRUE;
|
||||
once_control->is_initialized = true;
|
||||
once_control->init_executed = true;
|
||||
(*init_routine)();
|
||||
}
|
||||
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
|
||||
|
||||
@@ -110,7 +110,7 @@ int pthread_setschedparam(
|
||||
_Thread_Change_priority(
|
||||
the_thread,
|
||||
the_thread->real_priority,
|
||||
TRUE
|
||||
true
|
||||
);
|
||||
break;
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ void _POSIX_Timer_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Timer_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -33,9 +33,9 @@ int pthread_rwlockattr_destroy(
|
||||
pthread_rwlockattr_t *attr
|
||||
)
|
||||
{
|
||||
if ( !attr || attr->is_initialized == FALSE )
|
||||
if ( !attr || attr->is_initialized == false )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = FALSE;
|
||||
attr->is_initialized = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ int pthread_rwlockattr_init(
|
||||
if ( !attr )
|
||||
return EINVAL;
|
||||
|
||||
attr->is_initialized = TRUE;
|
||||
attr->is_initialized = true;
|
||||
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -49,11 +49,11 @@ void _POSIX_Semaphore_Manager_initialization(void)
|
||||
/* maximum objects of this class */
|
||||
sizeof( POSIX_Semaphore_Control ),
|
||||
/* size of this object's control block */
|
||||
TRUE, /* TRUE if names for this object are strings */
|
||||
true, /* true if names for this object are strings */
|
||||
_POSIX_PATH_MAX /* maximum length of each object's name */
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
,
|
||||
FALSE, /* TRUE if this is a global object class */
|
||||
false, /* true if this is a global object class */
|
||||
NULL /* Proxy extraction support callout */
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -73,13 +73,13 @@ int _POSIX_Semaphore_Create_support(
|
||||
the_semaphore->process_shared = pshared;
|
||||
|
||||
if ( name ) {
|
||||
the_semaphore->named = TRUE;
|
||||
the_semaphore->named = true;
|
||||
the_semaphore->open_count = 1;
|
||||
the_semaphore->linked = TRUE;
|
||||
the_semaphore->linked = true;
|
||||
} else {
|
||||
the_semaphore->named = FALSE;
|
||||
the_semaphore->named = false;
|
||||
the_semaphore->open_count = 0;
|
||||
the_semaphore->linked = FALSE;
|
||||
the_semaphore->linked = false;
|
||||
}
|
||||
|
||||
the_sem_attr = &the_semaphore->Semaphore.Attributes;
|
||||
|
||||
@@ -47,7 +47,7 @@ int sem_destroy(
|
||||
* Undefined operation on a named semaphore.
|
||||
*/
|
||||
|
||||
if ( the_semaphore->named == TRUE ) {
|
||||
if ( the_semaphore->named == true ) {
|
||||
_Thread_Enable_dispatch();
|
||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ sem_t *sem_open(
|
||||
|
||||
status =_POSIX_Semaphore_Create_support(
|
||||
name,
|
||||
FALSE, /* not shared across processes */
|
||||
false, /* not shared across processes */
|
||||
value,
|
||||
&the_semaphore
|
||||
);
|
||||
|
||||
@@ -38,5 +38,5 @@ int sem_trywait(
|
||||
sem_t *sem
|
||||
)
|
||||
{
|
||||
return _POSIX_Semaphore_Wait_support(sem, FALSE, THREAD_QUEUE_WAIT_FOREVER);
|
||||
return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ int sem_unlink(
|
||||
_Objects_Get_index( the_semaphore_id )
|
||||
);
|
||||
|
||||
the_semaphore->linked = FALSE;
|
||||
the_semaphore->linked = false;
|
||||
_POSIX_Semaphore_Namespace_remove( the_semaphore );
|
||||
_POSIX_Semaphore_Delete( the_semaphore );
|
||||
|
||||
|
||||
@@ -38,5 +38,5 @@ int sem_wait(
|
||||
sem_t *sem
|
||||
)
|
||||
{
|
||||
return _POSIX_Semaphore_Wait_support( sem, TRUE, THREAD_QUEUE_WAIT_FOREVER );
|
||||
return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user