pthread revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
header pthread.h
aso pthread_spinlock note{ pthread_spinlock_t supported }end link{
#include <pthread.h>
int main()
{
pthread_spinlock_t lock;
pthread_spin_init(&lock, 0);
pthread_spin_lock(&lock);
pthread_spin_unlock(&lock);
pthread_spin_destroy(&lock);
return 0;
}
}end
aso pthread_mutex note{ pthread_mutex_t supported }end link{
#include <pthread.h>
int main()
{
pthread_mutex_t lock;
pthread_mutex_init(&lock, 0);
pthread_mutex_lock(&lock);
pthread_mutex_unlock(&lock);
pthread_mutex_destroy(&lock);
return 0;
}
}end