Lines Matching refs:curthread

58 thr_malloc_lock(struct pthread *curthread)  in thr_malloc_lock()  argument
62 if (curthread == NULL) in thr_malloc_lock()
64 curthread->locklevel++; in thr_malloc_lock()
65 curtid = TID(curthread); in thr_malloc_lock()
73 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() argument
76 if (curthread == NULL) in thr_malloc_unlock()
81 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in thr_malloc_unlock()
82 curthread->locklevel--; in thr_malloc_unlock()
83 _thr_ast(curthread); in thr_malloc_unlock()
89 struct pthread *curthread; in __thr_calloc() local
92 curthread = _get_curthread(); in __thr_calloc()
93 thr_malloc_lock(curthread); in __thr_calloc()
95 thr_malloc_unlock(curthread); in __thr_calloc()
102 struct pthread *curthread; in __thr_free() local
104 curthread = _get_curthread(); in __thr_free()
105 thr_malloc_lock(curthread); in __thr_free()
107 thr_malloc_unlock(curthread); in __thr_free()
113 struct pthread *curthread; in __thr_malloc() local
116 curthread = _get_curthread(); in __thr_malloc()
117 thr_malloc_lock(curthread); in __thr_malloc()
119 thr_malloc_unlock(curthread); in __thr_malloc()
126 struct pthread *curthread; in __thr_realloc() local
129 curthread = _get_curthread(); in __thr_realloc()
130 thr_malloc_lock(curthread); in __thr_realloc()
132 thr_malloc_unlock(curthread); in __thr_realloc()
137 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() argument
140 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_prefork()
144 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork() argument
147 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_postfork()