summaryrefslogtreecommitdiff
path: root/libc/src/threads/linux/Thread.h
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2022-04-01 06:42:14 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2022-04-07 16:13:21 +0000
commit2ce09e680a7dc1201463ae74e199eac66ac52a8d (patch)
tree4b14f88eb781045a5141c6c1fb51933bfe9f78f9 /libc/src/threads/linux/Thread.h
parent0a77e633226b5598e426603c03e54d62ed275670 (diff)
[libc] Add a linux Thread class in __support/threads.
This change is essentially a mechanical change which moves the thread creation and join implementations from src/threads/linux to src/__support/threads/linux/thread.h. The idea being that, in future, a pthread implementation can reuse the common thread implementations in src/__support/threads. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D123287
Diffstat (limited to 'libc/src/threads/linux/Thread.h')
-rw-r--r--libc/src/threads/linux/Thread.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/libc/src/threads/linux/Thread.h b/libc/src/threads/linux/Thread.h
deleted file mode 100644
index de58ae4c64c6..000000000000
--- a/libc/src/threads/linux/Thread.h
+++ /dev/null
@@ -1,23 +0,0 @@
-//===-- Linux specific definitions for threads implementations. --*- C++ -*===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_LIBC_SRC_THREADS_LINUX_THREAD_UTILS_H
-#define LLVM_LIBC_SRC_THREADS_LINUX_THREAD_UTILS_H
-
-#include <stdint.h>
-
-namespace __llvm_libc {
-
-struct ThreadParams {
- static constexpr uintptr_t DEFAULT_STACK_SIZE = 1 << 16; // 64 KB
- static constexpr uint32_t CLEAR_TID_VALUE = 0xABCD1234;
-};
-
-} // namespace __llvm_libc
-
-#endif // LLVM_LIBC_SRC_THREADS_LINUX_THREAD_UTILS_H