diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-29 22:31:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-29 22:31:42 -0400 |
| commit | 39befc35a851f6cf206c7e3b19d66f7df00440b0 (patch) | |
| tree | aedd2a4b8888ede511469407205c29ff1434bd3f /std | |
| parent | 4e23fb7f062322e604d74ebb7e62d707ecf7e7b6 (diff) | |
| download | zig-39befc35a851f6cf206c7e3b19d66f7df00440b0.tar.gz zig-39befc35a851f6cf206c7e3b19d66f7df00440b0.zip | |
update comment in std/os/index.zig
Diffstat (limited to 'std')
| -rw-r--r-- | std/os/index.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/os/index.zig b/std/os/index.zig index ee9ff1516c..99aa7891cb 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -2546,9 +2546,9 @@ pub fn spawnThread(context: var, comptime startFn: var) SpawnThreadError!&Thread else => return unexpectedErrorPosix(usize(err)), } } else if (builtin.os == builtin.Os.linux) { - // use linux API directly + // use linux API directly. TODO use posix.CLONE_SETTLS and initialize thread local storage correctly const flags = posix.CLONE_VM | posix.CLONE_FS | posix.CLONE_FILES | posix.CLONE_SIGHAND - | posix.CLONE_THREAD | posix.CLONE_SYSVSEM // | posix.CLONE_SETTLS + | posix.CLONE_THREAD | posix.CLONE_SYSVSEM | posix.CLONE_PARENT_SETTID | posix.CLONE_CHILD_CLEARTID | posix.CLONE_DETACHED; const newtls: usize = 0; const rc = posix.clone(MainFuncs.linuxThreadMain, stack_end, flags, arg, &thread_ptr.data.pid, newtls, &thread_ptr.data.pid); |
