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:
Ralf Corsepius
2003-10-21 09:39:11 +00:00
parent a4e44c294f
commit e7bd66a799
5 changed files with 10 additions and 4 deletions
+6
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -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 );