diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-22 18:47:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-22 18:54:22 +0200 |
commit | b5d73c834ff0f4cb1ff6112f055bee4cd02b21ec (patch) | |
tree | 82aae5e6a9d2d798b9810770b15f2a9d3cb04161 /Userland/Utilities | |
parent | 5729b4e9a5658d8728239e3141ff270004af5d6c (diff) | |
download | serenity-b5d73c834ff0f4cb1ff6112f055bee4cd02b21ec.zip |
Userland: Rename LibThread => LibThreading
Also rename the "LibThread" namespace to "Threading"
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Userland/Utilities/test-pthread.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/CMakeLists.txt b/Userland/Utilities/CMakeLists.txt index 4951153865..dd63e4dce6 100644 --- a/Userland/Utilities/CMakeLists.txt +++ b/Userland/Utilities/CMakeLists.txt @@ -50,7 +50,7 @@ target_link_libraries(tar LibArchive LibCompress) target_link_libraries(telws LibProtocol LibLine) target_link_libraries(test-crypto LibCrypto LibTLS LibLine) target_link_libraries(test-fuzz LibCore LibGemini LibGfx LibHTTP LibIPC LibJS LibMarkdown LibShell) -target_link_libraries(test-pthread LibThread) +target_link_libraries(test-pthread LibThreading) target_link_libraries(tt LibPthread) target_link_libraries(unzip LibArchive LibCompress) target_link_libraries(zip LibArchive LibCompress LibCrypto) diff --git a/Userland/Utilities/test-pthread.cpp b/Userland/Utilities/test-pthread.cpp index d40adee8a2..559ece4a46 100644 --- a/Userland/Utilities/test-pthread.cpp +++ b/Userland/Utilities/test-pthread.cpp @@ -6,7 +6,7 @@ #include <AK/Assertions.h> #include <AK/NonnullRefPtrVector.h> -#include <LibThread/Thread.h> +#include <LibThreading/Thread.h> #include <pthread.h> #include <unistd.h> @@ -17,10 +17,10 @@ static void test_once() static Vector<int> v; v.clear(); pthread_once_t once = PTHREAD_ONCE_INIT; - NonnullRefPtrVector<LibThread::Thread, threads_count> threads; + NonnullRefPtrVector<Threading::Thread, threads_count> threads; for (size_t i = 0; i < threads_count; i++) { - threads.append(LibThread::Thread::construct([&] { + threads.append(Threading::Thread::construct([&] { return pthread_once(&once, [] { v.append(35); sleep(1); |