diff options
author | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2007-11-06 19:52:36 +0000 |
---|---|---|
committer | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2007-11-06 19:52:36 +0000 |
commit | 8a8f5b263ae4a42b85a2d0c4a598b9702e04a57e (patch) | |
tree | 8ee935170b0b7bb403d9be6082cdaff91adb9063 /cpukit/score/include/rtems/score/corespinlock.h | |
parent | 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-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/score/include/rtems/score/corespinlock.h')
-rw-r--r-- | cpukit/score/include/rtems/score/corespinlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/corespinlock.h b/cpukit/score/include/rtems/score/corespinlock.h index dc559b2a7c..58012c8add 100644 --- a/cpukit/score/include/rtems/score/corespinlock.h +++ b/cpukit/score/include/rtems/score/corespinlock.h @@ -45,6 +45,10 @@ typedef enum { * An attempt to relock it will result in deadlock. */ CORE_SPINLOCK_HOLDER_RELOCKING, + /** This status indicates that the current thread is attempting to unlock a + * spinlock that is held by another thread. + */ + CORE_SPINLOCK_NOT_HOLDER, /** This status indicates that a thread reached the limit of time it * was willing to wait on the spin lock. */ |