summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockwrlock.c
diff options
context:
space:
mode:
authorGlenn Humphrey <glenn.humphrey@oarcorp.com>2007-11-06 19:52:36 +0000
committerGlenn Humphrey <glenn.humphrey@oarcorp.com>2007-11-06 19:52:36 +0000
commit8a8f5b263ae4a42b85a2d0c4a598b9702e04a57e (patch)
tree8ee935170b0b7bb403d9be6082cdaff91adb9063 /cpukit/posix/src/prwlockwrlock.c
parent2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-8a8f5b263ae4a42b85a2d0c4a598b9702e04a57e.tar.bz2
2007-11-06 Glenn Humphrey <glenn.humphrey@OARcorp.com>
Miscellaneous changes made after a review against the POSIX spec. * posix/src/pbarrierinit.c, posix/src/prwlockinit.c: If the caller passes a NULL in the attributes parameter, default attributes are used. * posix/src/prwlockdestroy.c: If there is at least one thread waiting, do not allow deletion. * posix/src/prwlockwrlock.c: Corrected parameter passed to the core operation used to obtain a RWLock for writing. * posix/src/pspinlocktranslatereturncode.c, score/include/rtems/score/corespinlock.h, score/src/corespinlockrelease.c: If the current thread is not the holder of the lock, do not allow an unlock and return EPERM. * score/src/corerwlockobtainwrite.c: Corrected to use the operation for queueing with a timeout handler.
Diffstat (limited to 'cpukit/posix/src/prwlockwrlock.c')
-rw-r--r--cpukit/posix/src/prwlockwrlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/prwlockwrlock.c b/cpukit/posix/src/prwlockwrlock.c
index 6539e617a1..47b13f5647 100644
--- a/cpukit/posix/src/prwlockwrlock.c
+++ b/cpukit/posix/src/prwlockwrlock.c
@@ -58,7 +58,7 @@ int pthread_rwlock_wrlock(
_CORE_RWLock_Obtain_for_writing(
&the_rwlock->RWLock,
*rwlock,
- FALSE, /* do not timeout -- wait forever */
+ TRUE, /* do not timeout -- wait forever */
0,
NULL
);