mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 10:56:46 +08:00
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/cancelrun.c, src/pthreadexit.c, src/pthreadjoin.c, src/sigtimedwait.c: Remove unnecessary typecasts in assignments to thread->Wait.return_argument.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* src/cancelrun.c, src/pthreadexit.c, src/pthreadjoin.c,
|
||||
src/sigtimedwait.c: Remove unnecessary typecasts in assignments to
|
||||
thread->Wait.return_argument.
|
||||
|
||||
2003-10-13 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* src/cleanuppop.c, src/cleanuppush.c: Protect use of
|
||||
|
||||
@@ -53,7 +53,7 @@ void _POSIX_Threads_cancel_run(
|
||||
|
||||
/* Now we can delete the thread */
|
||||
|
||||
the_thread->Wait.return_argument = (unsigned32 *)PTHREAD_CANCELED;
|
||||
the_thread->Wait.return_argument = PTHREAD_CANCELED;
|
||||
_Thread_Close(
|
||||
_Objects_Get_information( the_thread->Object.id ),
|
||||
the_thread
|
||||
|
||||
@@ -38,7 +38,7 @@ void pthread_exit(
|
||||
|
||||
_Thread_Disable_dispatch();
|
||||
|
||||
_Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr;
|
||||
_Thread_Executing->Wait.return_argument = value_ptr;
|
||||
|
||||
_Thread_Close( the_information, _Thread_Executing );
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ int pthread_join(
|
||||
* Put ourself on the threads join list
|
||||
*/
|
||||
|
||||
_Thread_Executing->Wait.return_argument = (unsigned32 *) &return_pointer;
|
||||
_Thread_Executing->Wait.return_argument = &return_pointer;
|
||||
|
||||
_Thread_queue_Enter_critical_section( &api->Join_List );
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ int sigtimedwait(
|
||||
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
|
||||
the_thread->Wait.return_code = EINTR;
|
||||
the_thread->Wait.option = *set;
|
||||
the_thread->Wait.return_argument = (void *) the_info;
|
||||
the_thread->Wait.return_argument = the_info;
|
||||
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
|
||||
_ISR_Enable( level );
|
||||
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );
|
||||
|
||||
Reference in New Issue
Block a user