Home | History | Annotate | Download | only in pthread_mutexattr_setprotocol

Lines Matching refs:protocol

10  * Sets the protocol attribute of a mutexattr object (which was prev. created
14 * 1. In a for loop, call pthread_mutexattr_setprotocol with all the valid 'protocol' values.
28 int protocol, protcls[3], i;
41 /* Set the protocol to one of the 3 valid protocols. */
43 printf("Error setting protocol to %d\n", protcls[i]);
47 /* Get the protocol mutex attr. */
48 if (pthread_mutexattr_getprotocol(&mta, &protocol) != 0) {
50 "Error obtaining the protocol attribute.\n");
54 /* Make sure that the protocol set is the protocl we get when calling
56 if (protocol != protcls[i]) {
58 ("Test FAILED: Set protocol %d, but instead got protocol %d.\n",
59 protcls[i], protocol);