Lines Matching defs:spinlock
30 printf("Test PASSED: *Note: Did not return EDEADLK when re-locking a spinlock already in use, but standard says 'may' fail\n");
38 pthread_spinlock_t spinlock;
48 if(pthread_spin_init(&spinlock, PTHREAD_PROCESS_PRIVATE) != 0)
57 if(pthread_spin_lock(&spinlock) != 0)
68 rc = pthread_spin_lock(&spinlock);
78 printf("Test PASSED: *Note: Did not return EDEADLK when re-locking a spinlock already in use, but standard says 'may' fail\n");
81 /* Unlock spinlock */
82 pthread_spin_unlock(&spinlock);
84 /* Destroy spinlock */
85 pthread_spin_destroy(&spinlock);