[rtems commit] pthread.c: Remove XXX and use SIGNAL_ constants
Joel Sherrill
joel at rtems.org
Tue Dec 10 01:46:24 UTC 2013
Module: rtems
Branch: master
Commit: fa820b9e4c159535e8dcdb5e368fe2648e2b9e96
Changeset: http://git.rtems.org/rtems/commit/?id=fa820b9e4c159535e8dcdb5e368fe2648e2b9e96
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Dec 9 15:10:55 2013 -0600
pthread.c: Remove XXX and use SIGNAL_ constants
---
cpukit/posix/src/pthread.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 4d8f95f..55a38a4 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -6,7 +6,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2010.
+ * COPYRIGHT (c) 1989-2013.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -212,9 +212,7 @@ static bool _POSIX_Threads_Create_extension(
*
* The check for class == 1 is debug. Should never really happen.
*/
-
- /* XXX use signal constants */
- api->signals_pending = 0;
+ api->signals_pending = SIGNAL_EMPTY_MASK;
if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API
#if defined(RTEMS_DEBUG)
&& _Objects_Get_class( created->Object.id ) == 1
@@ -223,7 +221,7 @@ static bool _POSIX_Threads_Create_extension(
executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
api->signals_blocked = executing_api->signals_blocked;
} else {
- api->signals_blocked = 0xffffffff;
+ api->signals_blocked = SIGNAL_ALL_MASK;
}
_Thread_queue_Initialize(
More information about the vc
mailing list