Lines Matching refs:curthread

57 thr_malloc_lock(struct pthread *curthread)  in thr_malloc_lock()  argument
61 if (curthread == NULL) in thr_malloc_lock()
63 curthread->locklevel++; in thr_malloc_lock()
64 curtid = TID(curthread); in thr_malloc_lock()
72 thr_malloc_unlock(struct pthread *curthread) in thr_malloc_unlock() argument
75 if (curthread == NULL) in thr_malloc_unlock()
80 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in thr_malloc_unlock()
81 curthread->locklevel--; in thr_malloc_unlock()
82 _thr_ast(curthread); in thr_malloc_unlock()
88 struct pthread *curthread; in __thr_calloc() local
91 curthread = _get_curthread(); in __thr_calloc()
92 thr_malloc_lock(curthread); in __thr_calloc()
94 thr_malloc_unlock(curthread); in __thr_calloc()
101 struct pthread *curthread; in __thr_free() local
103 curthread = _get_curthread(); in __thr_free()
104 thr_malloc_lock(curthread); in __thr_free()
106 thr_malloc_unlock(curthread); in __thr_free()
112 struct pthread *curthread; in __thr_malloc() local
115 curthread = _get_curthread(); in __thr_malloc()
116 thr_malloc_lock(curthread); in __thr_malloc()
118 thr_malloc_unlock(curthread); in __thr_malloc()
125 struct pthread *curthread; in __thr_aligned_alloc_offset() local
128 curthread = _get_curthread(); in __thr_aligned_alloc_offset()
129 thr_malloc_lock(curthread); in __thr_aligned_alloc_offset()
131 thr_malloc_unlock(curthread); in __thr_aligned_alloc_offset()
138 struct pthread *curthread; in __thr_realloc() local
141 curthread = _get_curthread(); in __thr_realloc()
142 thr_malloc_lock(curthread); in __thr_realloc()
144 thr_malloc_unlock(curthread); in __thr_realloc()
149 __thr_malloc_prefork(struct pthread *curthread) in __thr_malloc_prefork() argument
152 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_prefork()
156 __thr_malloc_postfork(struct pthread *curthread) in __thr_malloc_postfork() argument
159 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread)); in __thr_malloc_postfork()