nptl.BullOpenSource.Org Forum Index nptl.BullOpenSource.Org
NPTL Tests & Trace project. Homepage.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pthread_mutex_trylock

 
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - Mutex related functions
View previous topic :: View next topic  
Author Message
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Fri Aug 20, 2004 2:46 pm    Post subject: pthread_mutex_trylock Reply with quote

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:

  1. The pthread_mutex_trylock() function locks the mutex object when it is unlocked.
  2. 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).
  3. If the mutex was already locked, the call returns EBUSY immediatly.
  4. If the function acquired a lock, the return value is 0.
  5. This function does not return an error code of [EINTR].

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Fri Aug 20, 2004 3:31 pm    Post subject: Conformance Status Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Fri Aug 20, 2004 3:41 pm    Post subject: Scalability Status Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Fri Aug 20, 2004 3:43 pm    Post subject: Stress status. Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Mon Sep 20, 2004 4:23 pm    Post subject: Conformance tests Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Tue Sep 21, 2004 8:02 am    Post subject: Stress test Reply with quote

Stress test

A new stress test has been added to the Open POSIX TestSuite for this routine.

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - Mutex related functions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group