Lines Matching refs:attrib
83 static void cleanup_thread_resources(ThreadAttributes *attrib) { in cleanup_thread_resources() argument
86 cleanup_tls(attrib->tls, attrib->tls_size); in cleanup_thread_resources()
87 if (attrib->owned_stack) in cleanup_thread_resources()
88 free_stack(attrib->stack, attrib->stack_size); in cleanup_thread_resources()
113 auto *attrib = start_args->thread_attrib; in start_thread() local
114 self.attrib = attrib; in start_thread()
117 if (attrib->style == ThreadStyle::POSIX) { in start_thread()
118 attrib->retval.posix_retval = in start_thread()
120 retval = long(attrib->retval.posix_retval); in start_thread()
122 attrib->retval.stdc_retval = in start_thread()
124 retval = long(attrib->retval.stdc_retval); in start_thread()
128 if (!attrib->detach_state.compare_exchange_strong( in start_thread()
131 cleanup_thread_resources(attrib); in start_thread()
174 attrib = in run()
176 attrib->style = style; in run()
177 attrib->detach_state = in run()
179 attrib->stack = stack; in run()
180 attrib->stack_size = size; in run()
181 attrib->owned_stack = owned_stack; in run()
182 attrib->tls = tls.addr; in run()
183 attrib->tls_size = tls.size; in run()
185 start_args->thread_attrib = attrib; in run()
192 attrib->platform_data = clear_tid; in run()
202 &attrib->tid, // The address where the child tid is written in run()
210 &attrib->tid, // The address where the child tid is written in run()
226 cleanup_thread_resources(attrib); in run()
236 if (attrib->style == ThreadStyle::POSIX) in join()
237 retval.posix_retval = attrib->retval.posix_retval; in join()
239 retval.stdc_retval = attrib->retval.stdc_retval; in join()
241 cleanup_thread_resources(attrib); in join()
248 if (attrib->detach_state.compare_exchange_strong( in detach()
258 cleanup_thread_resources(attrib); in detach()
268 reinterpret_cast<cpp::Atomic<FutexWordType> *>(attrib->platform_data); in wait()
278 return attrib->tid == thread.attrib->tid; in operator ==()