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