Navigation Menu

Skip to content

Commit

Permalink
[libc]Revert "Add linux implementations of thrd_create and thrd_join …
Browse files Browse the repository at this point in the history
…functions."

This reverts commit abc040e as the bots
are failing because of this.
  • Loading branch information
Siva Chandra Reddy committed Mar 6, 2020
1 parent 1f7badf commit 3c88489
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 329 deletions.
13 changes: 0 additions & 13 deletions libc/config/linux/api.td
Expand Up @@ -150,15 +150,7 @@ def SignalAPI : PublicAPI<"signal.h"> {
];
}

def ThreadStartT : TypeDecl<"thrd_start_t"> {
let Decl = "typedef int (*thrd_start_t)(void *);";
}

def ThreadsAPI : PublicAPI<"threads.h"> {
let TypeDeclarations = [
ThreadStartT,
];

let Enumerations = [
"mtx_plain",
"mtx_recursive",
Expand All @@ -169,9 +161,4 @@ def ThreadsAPI : PublicAPI<"threads.h"> {
"thrd_error",
"thrd_nomem",
];

let Functions = [
"thrd_create",
"thrd_join",
];
}
17 changes: 0 additions & 17 deletions libc/config/linux/threads.h.in

This file was deleted.

4 changes: 0 additions & 4 deletions libc/include/CMakeLists.txt
Expand Up @@ -39,12 +39,8 @@ add_gen_header(
threads_h
DEF_FILE threads.h.def
GEN_HDR threads.h
PARAMS
platform_threads=../config/${LIBC_TARGET_OS}/threads.h.in
DEPENDS
llvm_libc_common_h
DATA_FILES
../config/${LIBC_TARGET_OS}/threads.h.in
)

add_gen_header(
Expand Down
2 changes: 0 additions & 2 deletions libc/include/threads.h.def
Expand Up @@ -11,8 +11,6 @@

#include <__llvm-libc-common.h>

%%include_file(${platform_threads})

%%public_api()

#endif // LLVM_LIBC_THREADS_H
4 changes: 0 additions & 4 deletions libc/lib/CMakeLists.txt
Expand Up @@ -22,10 +22,6 @@ add_entrypoint_library(
# stdlib.h entrypoints
_Exit
abort

# threads.h entrypoints
thrd_create
thrd_join
)

add_entrypoint_library(
Expand Down
1 change: 0 additions & 1 deletion libc/src/CMakeLists.txt
Expand Up @@ -5,6 +5,5 @@ add_subdirectory(stdlib)
add_subdirectory(string)
# TODO: Add this target conditional to the target OS.
add_subdirectory(sys)
add_subdirectory(threads)

add_subdirectory(__support)
3 changes: 0 additions & 3 deletions libc/src/threads/CMakeLists.txt

This file was deleted.

37 changes: 0 additions & 37 deletions libc/src/threads/linux/CMakeLists.txt

This file was deleted.

74 changes: 0 additions & 74 deletions libc/src/threads/linux/thrd_create.cpp

This file was deleted.

44 changes: 0 additions & 44 deletions libc/src/threads/linux/thrd_join.cpp

This file was deleted.

21 changes: 0 additions & 21 deletions libc/src/threads/linux/thread_utils.h

This file was deleted.

20 changes: 0 additions & 20 deletions libc/src/threads/thrd_create.h

This file was deleted.

20 changes: 0 additions & 20 deletions libc/src/threads/thrd_join.h

This file was deleted.

1 change: 0 additions & 1 deletion libc/test/src/CMakeLists.txt
Expand Up @@ -3,4 +3,3 @@ add_subdirectory(signal)
add_subdirectory(stdlib)
add_subdirectory(string)
add_subdirectory(sys)
add_subdirectory(threads)
16 changes: 0 additions & 16 deletions libc/test/src/threads/CMakeLists.txt

This file was deleted.

52 changes: 0 additions & 52 deletions libc/test/src/threads/thrd_test.cpp

This file was deleted.

0 comments on commit 3c88489

Please sign in to comment.