diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-21 15:42:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-05 14:29:02 +0200 |
commit | 89fc9345dea5c675f8d93546fa3c723918d3279a (patch) | |
tree | 89c32d64f375e1a9bf9d3725b1256aeb7ca46221 /cpukit/sapi/src | |
parent | posix: Implement self-contained POSIX barriers (diff) | |
download | rtems-89fc9345dea5c675f8d93546fa3c723918d3279a.tar.bz2 |
posix: Implement self-contained POSIX rwlocks
POSIX rwlocks are now available in all configurations and no longer
depend on --enable-posix.
Update #2514.
Update #3115.
Diffstat (limited to 'cpukit/sapi/src')
-rw-r--r-- | cpukit/sapi/src/posixapi.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/sapi/src/posixapi.c b/cpukit/sapi/src/posixapi.c index a877e83ffc..41325bb07a 100644 --- a/cpukit/sapi/src/posixapi.c +++ b/cpukit/sapi/src/posixapi.c @@ -21,6 +21,7 @@ #include <rtems/posix/posixapi.h> #include <rtems/posix/barrierimpl.h> +#include <rtems/posix/rwlockimpl.h> #include <rtems/posix/semaphoreimpl.h> #include <rtems/score/heap.h> @@ -65,12 +66,40 @@ RTEMS_STATIC_ASSERT( POSIX_BARRIER_MAGIC != HEAP_FREE_PATTERN, POSIX_BARRIER_MAGIC_4 ); +RTEMS_STATIC_ASSERT( + POSIX_RWLOCK_MAGIC != HEAP_BEGIN_PROTECTOR_0, + POSIX_RWLOCK_MAGIC_0 +); +RTEMS_STATIC_ASSERT( + POSIX_RWLOCK_MAGIC != HEAP_BEGIN_PROTECTOR_1, + POSIX_RWLOCK_MAGIC_1 +); +RTEMS_STATIC_ASSERT( + POSIX_RWLOCK_MAGIC != HEAP_END_PROTECTOR_0, + POSIX_RWLOCK_MAGIC_2 +); +RTEMS_STATIC_ASSERT( + POSIX_RWLOCK_MAGIC != HEAP_END_PROTECTOR_1, + POSIX_RWLOCK_MAGIC_3 +); +RTEMS_STATIC_ASSERT( + POSIX_RWLOCK_MAGIC != HEAP_FREE_PATTERN, + POSIX_RWLOCK_MAGIC_4 +); #endif RTEMS_STATIC_ASSERT( POSIX_SEMAPHORE_MAGIC != POSIX_BARRIER_MAGIC, POSIX_SEMAPHORE_MAGIC_5 ); +RTEMS_STATIC_ASSERT( + POSIX_SEMAPHORE_MAGIC != POSIX_RWLOCK_MAGIC, + POSIX_SEMAPHORE_MAGIC_6 +); +RTEMS_STATIC_ASSERT( + POSIX_BARRIER_MAGIC != POSIX_RWLOCK_MAGIC, + POSIX_BARRIER_MAGIC_5 +); void _POSIX_Fatal_error( POSIX_Fatal_domain domain, int eno ) { |