Searched refs:lk (Results 1 – 2 of 2) sorted by relevance
1922 static FORCEINLINE void recursive_release_lock(MLOCK_T *lk) { in recursive_release_lock() argument1923 assert(lk->sl != 0); in recursive_release_lock()1924 if (--lk->c == 0) { in recursive_release_lock()1925 CLEAR_LOCK(&lk->sl); in recursive_release_lock()1929 static FORCEINLINE int recursive_acquire_lock(MLOCK_T *lk) { in recursive_acquire_lock() argument1933 if (*((volatile int *)(&lk->sl)) == 0) { in recursive_acquire_lock()1934 if (!CAS_LOCK(&lk->sl)) { in recursive_acquire_lock()1935 lk->threadid = mythreadid; in recursive_acquire_lock()1936 lk->c = 1; in recursive_acquire_lock()1940 else if (EQ_OWNER(lk->threadid, mythreadid)) { in recursive_acquire_lock()[all …]
372 struct fuse_file_lock lk; member379 struct fuse_file_lock lk; member