mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +00:00
Userland: Rename LibThread => LibThreading
Also rename the "LibThread" namespace to "Threading"
This commit is contained in:
parent
5729b4e9a5
commit
b5d73c834f
25 changed files with 69 additions and 69 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue