Lines Matching defs:curthread
57 thr_malloc_lock(struct pthread *curthread)
61 if (curthread == NULL)
63 curthread->locklevel++;
64 curtid = TID(curthread);
72 thr_malloc_unlock(struct pthread *curthread)
75 if (curthread == NULL)
80 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread));
81 curthread->locklevel--;
82 _thr_ast(curthread);
88 struct pthread *curthread;
91 curthread = _get_curthread();
92 thr_malloc_lock(curthread);
94 thr_malloc_unlock(curthread);
101 struct pthread *curthread;
103 curthread = _get_curthread();
104 thr_malloc_lock(curthread);
106 thr_malloc_unlock(curthread);
112 struct pthread *curthread;
115 curthread = _get_curthread();
116 thr_malloc_lock(curthread);
118 thr_malloc_unlock(curthread);
125 struct pthread *curthread;
128 curthread = _get_curthread();
129 thr_malloc_lock(curthread);
131 thr_malloc_unlock(curthread);
136 __thr_malloc_prefork(struct pthread *curthread)
139 _thr_umutex_lock(&thr_malloc_umtx, TID(curthread));
143 __thr_malloc_postfork(struct pthread *curthread)
146 _thr_umutex_unlock(&thr_malloc_umtx, TID(curthread));