Home
last modified time | relevance | path

Searched refs:ThreadStyle (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/libc/src/__support/threads/
H A Dthread.h60 enum class ThreadStyle : uint8_t { POSIX = 0x1, STDC = 0x2 }; enum
108 ThreadStyle style;
116 tid(-1), style(ThreadStyle::POSIX), retval(), in ThreadAttributes()
162 return run(ThreadStyle::POSIX, runner, arg, stack, stacksize, guardsize,
172 return run(ThreadStyle::STDC, runner, arg, stack, stacksize, guardsize,
199 int run(ThreadStyle style, ThreadRunner runner, void *arg, void *stack,
237 [[noreturn]] void thread_exit(ThreadReturnValue retval, ThreadStyle style);
/freebsd/contrib/llvm-project/libc/src/__support/threads/linux/
H A Dthread.cpp185 if (attrib->style == ThreadStyle::POSIX) { in start_thread()
189 ThreadStyle::POSIX); in start_thread()
194 ThreadStyle::STDC); in start_thread()
198 int Thread::run(ThreadStyle style, ThreadRunner runner, void *arg, void *stack, in run()
345 if (attrib->style == ThreadStyle::POSIX) in join()
485 void thread_exit(ThreadReturnValue retval, ThreadStyle style) { in thread_exit()
514 if (style == ThreadStyle::POSIX) in thread_exit()