Lines Matching refs:curthread
62 thr_malloc_lock(struct pthread *curthread) in thr_malloc_lock() argument
66 if (curthread == NULL) in thr_malloc_lock()
68 curthread->locklevel++; in thr_malloc_lock()
69 curtid = TID(curthread); in thr_malloc_lock()
77 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() argument
80 if (curthread == NULL) in thr_malloc_unlock()
85 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in thr_malloc_unlock()
86 curthread->locklevel--; in thr_malloc_unlock()
87 _thr_ast(curthread); in thr_malloc_unlock()
93 struct pthread *curthread; in __thr_calloc() local
96 curthread = _get_curthread(); in __thr_calloc()
97 thr_malloc_lock(curthread); in __thr_calloc()
99 thr_malloc_unlock(curthread); in __thr_calloc()
106 struct pthread *curthread; in __thr_free() local
108 curthread = _get_curthread(); in __thr_free()
109 thr_malloc_lock(curthread); in __thr_free()
111 thr_malloc_unlock(curthread); in __thr_free()
117 struct pthread *curthread; in __thr_malloc() local
120 curthread = _get_curthread(); in __thr_malloc()
121 thr_malloc_lock(curthread); in __thr_malloc()
123 thr_malloc_unlock(curthread); in __thr_malloc()
130 struct pthread *curthread; in __thr_realloc() local
133 curthread = _get_curthread(); in __thr_realloc()
134 thr_malloc_lock(curthread); in __thr_realloc()
136 thr_malloc_unlock(curthread); in __thr_realloc()
141 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() argument
144 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_prefork()
148 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork() argument
151 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_postfork()