mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-30 07:55:25 +08:00
* Makefile.am, configure.ac: Add psxspin02 to exercise case where trylock is unable to obtain the spinlock and that attempting to unlock a spinlock from a thread which did not lock it works as expected. * psxspin02/.cvsignore, psxspin02/Makefile.am, psxspin02/main.c, psxspin02/psxspin02.doc, psxspin02/psxspin02.scn, psxspin02/test.c: New files.
9 lines
332 B
Plaintext
9 lines
332 B
Plaintext
*** POSIX SPINLOCK TEST 02 ***
|
|
pthread_spin_init( &Spinlock, PTHREAD_PROCESS_PRIVATE ) -- OK
|
|
pthread_spin_lock( &Spinlock ) -- OK
|
|
pthread_spin_trylock( &Spinlock ) -- EBUSY
|
|
pthread_spin_unlock( &Spinlock ) -- EPERM
|
|
pthread_spin_unlock( &Spinlock ) -- OK
|
|
pthread_spin_destroy( &Spinlock ) -- OK
|
|
*** END OF POSIX SPINLOCK TEST 02 ***
|