Lines Matching refs:func
86 static void lock_error(struct checked_lock* lock, const char* func,
91 const char* func, const char* file, int line, const char* err) in lock_error() argument
99 log_err("At %s %s:%d", func, file, line); in lock_error()
119 const char* func, const char* file, int line) in acquire_locklock() argument
137 lock_error(lock, func, file, line, "acquire locklock"); in acquire_locklock()
199 const char* func, const char* file, int line) in prot_check() argument
206 lock_error(lock, func, file, line, in prot_check()
284 const char* func, const char* file, int line) in checklock_init() argument
291 fatal_exit("%s %s %d: out of memory", func, file, line); in checklock_init()
302 fatal_exit("%s %s %d: lock_init no thread info", func, file, in checklock_init()
306 e->create_func = func; in checklock_init()
344 const char* func, const char* file, int line) in checktype() argument
348 func, file, line); in checktype()
350 lock_error(lock, func, file, line, "wrong lock type"); in checktype()
357 const char* func, const char* file, int line) in checklock_destroy() argument
366 checktype(type, e, func, file, line); in checklock_destroy()
369 acquire_locklock(e, func, file, line); in checklock_destroy()
371 lock_error(e, func, file, line, "delete while locked."); in checklock_destroy()
373 lock_error(e, func, file, line, "delete while waited on."); in checklock_destroy()
374 prot_check(e, func, file, line); in checklock_destroy()
413 const char* func, const char* file, int line) in finish_acquire_lock() argument
419 lock->holder_func = func; in finish_acquire_lock()
452 const char* func, const char* file, int line, in checklock_lockit() argument
460 checktype(type, lock, func, file, line); in checklock_lockit()
461 if(!thr) lock_error(lock, func, file, line, "no thread info"); in checklock_lockit()
463 acquire_locklock(lock, func, file, line); in checklock_lockit()
467 lock_error(lock, func, file, line, "thread already owns lock"); in checklock_lockit()
469 lock_error(lock, func, file, line, "thread already has wrlock"); in checklock_lockit()
480 lock_error(lock, func, file, line, in checklock_lockit()
488 acquire_locklock(lock, func, file, line); in checklock_lockit()
492 lock_error(lock, func, file, line, "got nonexclusive lock"); in checklock_lockit()
494 lock_error(lock, func, file, line, "got nonexclusive wrlock"); in checklock_lockit()
502 prot_check(lock, func, file, line); in checklock_lockit()
503 finish_acquire_lock(thr, lock, func, file, line); in checklock_lockit()
517 const char* func, const char* file, int line) in checklock_rdlock() argument
526 checklock_lockit(type, lock, func, file, line, in checklock_rdlock()
540 const char* func, const char* file, int line) in checklock_wrlock() argument
548 checklock_lockit(type, lock, func, file, line, in checklock_wrlock()
580 const char* func, const char* file, int line) in checklock_lock() argument
590 checklock_lockit(type, lock, func, file, line, in checklock_lock()
595 checklock_lockit(type, lock, func, file, line, in checklock_lock()
607 const char* func, const char* file, int line) in checklock_unlock() argument
613 checktype(type, lock, func, file, line); in checklock_unlock()
614 if(!thr) lock_error(lock, func, file, line, "no thread info"); in checklock_unlock()
616 acquire_locklock(lock, func, file, line); in checklock_unlock()
620 lock_error(lock, func, file, line, "unlock nonlocked lock"); in checklock_unlock()
623 lock_error(lock, func, file, line, "too many unlocks"); in checklock_unlock()
632 lock->holder_func = func; in checklock_unlock()
714 ret = thr->func(thr->arg); in checklock_main()
762 checklock_thrcreate(pthread_t* id, void* (*func)(void*), void* arg) in checklock_thrcreate()
771 thr->func = func; in checklock_thrcreate()
829 log_info("thread func is %llx", (unsigned long long)(size_t)thr->func); in thread_debug_info()