master
1#include "pthread_impl.h"
2
3int pthread_spin_trylock(pthread_spinlock_t *s)
4{
5	if (*s) return EBUSY;
6	*s = 1;
7	return 0;
8}