MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __sx_xunlock

Function __sx_xunlock

freebsd/sys/sx.h:174–182  ·  view source on GitHub ↗

Release an exclusive lock. */

Source from the content-addressed store, hash-verified

172
173/* Release an exclusive lock. */
174static __inline void
175__sx_xunlock(struct sx *sx, struct thread *td, const char *file, int line)
176{
177 uintptr_t x = (uintptr_t)td;
178
179 if (__predict_false(LOCKSTAT_PROFILE_ENABLED(sx__release) ||
180 !atomic_fcmpset_rel_ptr(&sx->sx_lock, &x, SX_LOCK_UNLOCKED)))
181 _sx_xunlock_hard(sx, x);
182}
183#endif
184
185/*

Callers 1

_sx_xunlockFunction · 0.85

Calls 1

_sx_xunlock_hardFunction · 0.85

Tested by

no test coverage detected