Home | History | Annotate | Download | only in pthread_mutexattr_gettype

Lines Matching defs:type

10  * Gets the mutex 'type' attribute.  This attribute is set in the 'type' parameter to
13 * Testing the PTHREAD_MUTEX_ERRORCHECK type.
17 * 2. Set tye mutexattr type to PTHREAD_MUTEX_ERRORCHECK
18 * 3. Call pthread_mutexattr_gettype() to check if type
32 int type;
40 /* Set the mutex attribute 'type' to PTHREAD_MUTEX_ERRORCHECK. */
43 "pthread_mutexattr_settype(): Error setting the attribute 'type'\n");
47 /* The 'type' attribute should be PTHREAD_MUTEX_ERRORCHECK */
48 if (pthread_mutexattr_gettype(&mta, &type) != 0) {
50 "pthread_mutexattr_gettype(): Error obtaining the attribute 'type'\n");
54 if (type != PTHREAD_MUTEX_ERRORCHECK) {
56 ("Test FAILED: Incorrect mutexattr 'type' value: %d. Should be PTHREAD_MUTEX_ERRORCHECK\n",
57 type);