]> pd.if.org Git - zos/blob - spinlock.h
add a readme with a public domain note
[zos] / spinlock.h
1 #ifndef _SPINLOCK_H_
2 #define _SPINLOCK_H_ 1
3 struct spinlock_t {
4         uint32_t ticket;
5         uint32_t counter;
6 };
7
8 void spinlock_release(struct spinlock_t *);
9 void spinlock_init(struct spinlock_t *);
10 void spinlock_acquire(struct spinlock_t *);
11 #endif