| add_entrypoint_object( | |
| call_once | |
| SRCS | |
| call_once.cpp | |
| HDRS | |
| ../call_once.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.sys_syscall | |
| libc.include.threads | |
| libc.src.__support.CPP.atomic | |
| libc.src.__support.OSUtil.osutil | |
| ) | |
| add_header_library( | |
| threads_utils | |
| HDRS | |
| CndVar.h | |
| Futex.h | |
| Thread.h | |
| DEPENDS | |
| libc.include.sys_syscall | |
| libc.include.threads | |
| libc.src.__support.CPP.atomic | |
| libc.src.__support.OSUtil.osutil | |
| libc.src.__support.threads.mutex | |
| ) | |
| add_entrypoint_object( | |
| thrd_create | |
| SRCS | |
| thrd_create.cpp | |
| HDRS | |
| ../thrd_create.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.errno | |
| libc.include.sys_mman | |
| libc.include.sys_syscall | |
| libc.include.threads | |
| libc.src.__support.common | |
| libc.src.__support.OSUtil.osutil | |
| COMPILE_OPTIONS | |
| -O3 | |
| -fno-omit-frame-pointer # This allows us to sniff out the thread args from | |
| # the new thread's stack reliably. | |
| ) | |
| add_entrypoint_object( | |
| thrd_join | |
| SRCS | |
| thrd_join.cpp | |
| HDRS | |
| ../thrd_join.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.sys_syscall | |
| libc.include.threads | |
| libc.src.__support.CPP.atomic | |
| libc.src.__support.common | |
| libc.src.__support.OSUtil.osutil | |
| ) | |
| add_entrypoint_object( | |
| cnd_init | |
| SRCS | |
| cnd_init.cpp | |
| HDRS | |
| ../cnd_init.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.threads | |
| ) | |
| add_entrypoint_object( | |
| cnd_destroy | |
| SRCS | |
| cnd_destroy.cpp | |
| HDRS | |
| ../cnd_destroy.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.threads | |
| ) | |
| add_entrypoint_object( | |
| cnd_wait | |
| SRCS | |
| cnd_wait.cpp | |
| HDRS | |
| ../cnd_wait.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.threads | |
| libc.src.__support.threads.mutex | |
| ) | |
| add_entrypoint_object( | |
| cnd_signal | |
| SRCS | |
| cnd_signal.cpp | |
| HDRS | |
| ../cnd_signal.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.threads | |
| ) | |
| add_entrypoint_object( | |
| cnd_broadcast | |
| SRCS | |
| cnd_broadcast.cpp | |
| HDRS | |
| ../cnd_broadcast.h | |
| DEPENDS | |
| .threads_utils | |
| libc.include.threads | |
| ) |