ck_spinlock: Move elision prototype to end of file.

ck_pring
Samy Al Bahra 12 years ago
parent c76441fff3
commit f214d9419e

@ -51,13 +51,6 @@
#define ck_spinlock_locked(x) ck_spinlock_fas_locked(x) #define ck_spinlock_locked(x) ck_spinlock_fas_locked(x)
#define ck_spinlock_trylock(x) ck_spinlock_fas_trylock(x) #define ck_spinlock_trylock(x) ck_spinlock_fas_trylock(x)
CK_ELIDE_PROTOTYPE(ck_spinlock, ck_spinlock_t,
ck_spinlock_locked, ck_spinlock_lock,
ck_spinlock_locked, ck_spinlock_unlock)
CK_ELIDE_TRYLOCK_PROTOTYPE(ck_spinlock, ck_spinlock_t,
ck_spinlock_locked, ck_spinlock_trylock)
#ifndef CK_F_SPINLOCK_ANDERSON #ifndef CK_F_SPINLOCK_ANDERSON
#define CK_F_SPINLOCK_ANDERSON #define CK_F_SPINLOCK_ANDERSON
/* /*
@ -906,5 +899,12 @@ ck_spinlock_clh_unlock(struct ck_spinlock_clh **thread)
} }
#endif /* CK_F_SPINLOCK_CLH */ #endif /* CK_F_SPINLOCK_CLH */
CK_ELIDE_PROTOTYPE(ck_spinlock, ck_spinlock_t,
ck_spinlock_locked, ck_spinlock_lock,
ck_spinlock_locked, ck_spinlock_unlock)
CK_ELIDE_TRYLOCK_PROTOTYPE(ck_spinlock, ck_spinlock_t,
ck_spinlock_locked, ck_spinlock_trylock)
#endif /* _CK_SPINLOCK_H */ #endif /* _CK_SPINLOCK_H */

Loading…
Cancel
Save