Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/mutex.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
void thread_lock_flags_(struct thread *, int, const char *, int); | void thread_lock_flags_(struct thread *, int, const char *, int); | ||||
#if LOCK_DEBUG > 0 | #if LOCK_DEBUG > 0 | ||||
void _thread_lock(struct thread *td, int opts, const char *file, int line); | void _thread_lock(struct thread *td, int opts, const char *file, int line); | ||||
#else | #else | ||||
void _thread_lock(struct thread *); | void _thread_lock(struct thread *); | ||||
#endif | #endif | ||||
#if defined(LOCK_PROFILING) || defined(KLD_MODULE) | #if defined(LOCK_PROFILING) || (defined(KLD_MODULE) && !defined(KLD_TIED)) | ||||
#define thread_lock(tdp) \ | #define thread_lock(tdp) \ | ||||
thread_lock_flags_((tdp), 0, __FILE__, __LINE__) | thread_lock_flags_((tdp), 0, __FILE__, __LINE__) | ||||
#elif LOCK_DEBUG > 0 | #elif LOCK_DEBUG > 0 | ||||
#define thread_lock(tdp) \ | #define thread_lock(tdp) \ | ||||
_thread_lock((tdp), 0, __FILE__, __LINE__) | _thread_lock((tdp), 0, __FILE__, __LINE__) | ||||
#else | #else | ||||
#define thread_lock(tdp) \ | #define thread_lock(tdp) \ | ||||
_thread_lock((tdp)) | _thread_lock((tdp)) | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |