| View previous topic :: View next topic |
| Author |
Message |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Fri Aug 20, 2004 2:46 pm Post subject: pthread_mutex_trylock |
|
|
POSIX
POSIX is a registered trademark from the IEEE. The following assertions are derived from copyrighted material. Original text and copyright information can be found at http://www.opengroup.org.
Here is what POSIX requires for this function:
- The pthread_mutex_trylock() function locks the mutex object when it is unlocked.
- If the mutex is of type PTHREAD_MUTEX_RECURSIVE, and the calling thread already owns the mutex, the call is successful (the lock count is incremented).
- If the mutex was already locked, the call returns EBUSY immediatly.
- If the function acquired a lock, the return value is 0.
- This function does not return an error code of [EINTR].
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Fri Aug 20, 2004 3:31 pm Post subject: Conformance Status |
|
|
Conformance Status
- Assertion 1 is tested only with default attribute mutex. A new testcase will be written.
- Assertion 2 is not tested yet. A new testcase will be written.
- Assertion 3 is tested only with default attribute mutex. A new testcase will be written.
- Assertion 4 can only be partially tested -- done in assertion 1. A new stress test will be written to check that the function does not return EBUSY and lock the mutex anyway.
- Assertion 5 is not tested yet. A new testcase will be written.
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Fri Aug 20, 2004 3:41 pm Post subject: Scalability Status |
|
|
Scalability Status
Scalability has no meaning for this particular routine. (The mutex general issues are already covered in other routines) _________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Fri Aug 20, 2004 3:43 pm Post subject: Stress status. |
|
|
Stress Status
A sample will be written to address the conformance issue for assertion 4. No additional sample is required for this routine. _________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Mon Sep 20, 2004 4:23 pm Post subject: Conformance tests |
|
|
Conformance tests
The following tests have been added to the Open POSIX Testsuite:
- 1-2.c (tests for assertion 1)
- 2-1.c (tests for assertion 2)
- 4-2.c (tests for assertion 3)
- 4-3.c (tests for assertion 5)
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Tue Sep 21, 2004 8:02 am Post subject: Stress test |
|
|
Stress test
A new stress test has been added to the Open POSIX TestSuite for this routine.
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
|