Lines Matching refs:curthread

61 thr_malloc_lock(struct pthread *curthread)  in thr_malloc_lock()  argument
64 if (curthread == NULL) in thr_malloc_lock()
66 curthread->locklevel++; in thr_malloc_lock()
67 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread)); in thr_malloc_lock()
71 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() argument
74 if (curthread == NULL) in thr_malloc_unlock()
76 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in thr_malloc_unlock()
77 curthread->locklevel--; in thr_malloc_unlock()
78 _thr_ast(curthread); in thr_malloc_unlock()
84 struct pthread *curthread; in __thr_calloc() local
87 curthread = _get_curthread(); in __thr_calloc()
88 thr_malloc_lock(curthread); in __thr_calloc()
90 thr_malloc_unlock(curthread); in __thr_calloc()
97 struct pthread *curthread; in __thr_free() local
99 curthread = _get_curthread(); in __thr_free()
100 thr_malloc_lock(curthread); in __thr_free()
102 thr_malloc_unlock(curthread); in __thr_free()
108 struct pthread *curthread; in __thr_malloc() local
111 curthread = _get_curthread(); in __thr_malloc()
112 thr_malloc_lock(curthread); in __thr_malloc()
114 thr_malloc_unlock(curthread); in __thr_malloc()
121 struct pthread *curthread; in __thr_realloc() local
124 curthread = _get_curthread(); in __thr_realloc()
125 thr_malloc_lock(curthread); in __thr_realloc()
127 thr_malloc_unlock(curthread); in __thr_realloc()
132 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() argument
135 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_prefork()
139 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork() argument
142 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_postfork()