summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/src/posixapi.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-25 14:03:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-25 14:03:51 +0000
commit7fa1ce86feb5a1bd1ab0ea22f93fea1139485539 (patch)
tree9006b6a6ce45b9a3e63f179a649065c7c3062b9e /cpukit/sapi/src/posixapi.c
parent2006-09-25 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-7fa1ce86feb5a1bd1ab0ea22f93fea1139485539.tar.bz2
2006-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h, sapi/src/posixapi.c, sapi/src/rtemsapi.c: Add Classic API Barriers and commented out hooks to initialize .
Diffstat (limited to 'cpukit/sapi/src/posixapi.c')
-rw-r--r--cpukit/sapi/src/posixapi.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c
index a86962c912..843716edeb 100644
--- a/cpukit/sapi/src/posixapi.c
+++ b/cpukit/sapi/src/posixapi.c
@@ -33,6 +33,7 @@
#include <mqueue.h>
#include <rtems/config.h>
#include <rtems/score/object.h>
+#include <rtems/posix/barrier.h>
#include <rtems/posix/cond.h>
#include <rtems/posix/config.h>
#include <rtems/posix/key.h>
@@ -41,8 +42,10 @@
#include <rtems/posix/priority.h>
#include <rtems/posix/psignal.h>
#include <rtems/posix/pthread.h>
+#include <rtems/posix/rwlock.h>
#include <rtems/posix/timer.h>
#include <rtems/posix/semaphore.h>
+#include <rtems/posix/spinlock.h>
#include <rtems/posix/time.h>
/*PAGE
@@ -62,6 +65,9 @@ posix_api_configuration_table _POSIX_Default_configuration = {
0, /* number_of_initialization_threads */
0, /* maximum_message_queues */
0, /* maximum_semaphores */
+ 0, /* maximum_barriers */
+ 0, /* maximum_spinlocks */
+ 0, /* maximum_rwlocks */
NULL /* User_initialization_threads_table */
};
@@ -112,7 +118,16 @@ void _POSIX_API_Initialize(
api_configuration->maximum_semaphores
);
- _POSIX_Timer_Manager_initialization ( api_configuration->maximum_timers );
+ _POSIX_Timer_Manager_initialization( api_configuration->maximum_timers );
+
+ /* temporary while working */
+#if 0
+ _POSIX_Barrier_Manager_initialization( api_configuration->maximum_barriers );
+
+ _POSIX_RWLock_Manager_initialization( api_configuration->maximum_rwlocks );
+
+ _POSIX_Spinlock_Manager_initialization(api_configuration->maximum_spinlocks);
+#endif
}
#endif