summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:08:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:08:16 +0000
commitf39b01e6768074ea60d98c4b0e16ac9789aa1cc0 (patch)
tree4a819c29020235956f2bb93a3e62ba4c536210f2 /c/src
parentdeleted POSIX threads typedef masking Thread_Control (diff)
downloadrtems-f39b01e6768074ea60d98c4b0e16ac9789aa1cc0.tar.bz2
added an assert if a pthread_t is not the same size as an Objects_Id
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/sapi/src/posixapi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/c/src/exec/sapi/src/posixapi.c b/c/src/exec/sapi/src/posixapi.c
index 0f394c7a3d..8cd30d5072 100644
--- a/c/src/exec/sapi/src/posixapi.c
+++ b/c/src/exec/sapi/src/posixapi.c
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <rtems/config.h>
+#include <rtems/score/object.h>
#include <rtems/posix/cond.h>
#include <rtems/posix/config.h>
#include <rtems/posix/key.h>
@@ -60,11 +61,13 @@ void _POSIX_API_Initialize(
{
posix_api_configuration_table *api_configuration;
+ /* XXX need to assert here based on size assumptions */
+
+ assert( sizeof(pthread_t) == sizeof(Objects_Id) );
+
api_configuration = configuration_table->POSIX_api_configuration;
if ( !api_configuration )
api_configuration = &_POSIX_Default_configuration;
-
-
_POSIX_Threads_Manager_initialization(
api_configuration->maximum_threads,