1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:47:34 +00:00

Userland: Rename LibThread => LibThreading

Also rename the "LibThread" namespace to "Threading"
This commit is contained in:
Andreas Kling 2021-05-22 18:47:42 +02:00
parent 5729b4e9a5
commit b5d73c834f
25 changed files with 69 additions and 69 deletions

View file

@ -10,4 +10,4 @@ set(SOURCES
)
serenity_bin(AudioServer)
target_link_libraries(AudioServer LibCore LibThread LibIPC)
target_link_libraries(AudioServer LibCore LibThreading LibIPC)

View file

@ -16,7 +16,7 @@ namespace AudioServer {
Mixer::Mixer()
: m_device(Core::File::construct("/dev/audio", this))
, m_sound_thread(LibThread::Thread::construct(
, m_sound_thread(Threading::Thread::construct(
[this] {
mix();
return 0;

View file

@ -16,8 +16,8 @@
#include <AK/WeakPtr.h>
#include <LibAudio/Buffer.h>
#include <LibCore/File.h>
#include <LibThread/Lock.h>
#include <LibThread/Thread.h>
#include <LibThreading/Lock.h>
#include <LibThreading/Thread.h>
namespace AudioServer {
@ -112,7 +112,7 @@ private:
RefPtr<Core::File> m_device;
NonnullRefPtr<LibThread::Thread> m_sound_thread;
NonnullRefPtr<Threading::Thread> m_sound_thread;
bool m_muted { false };
int m_main_volume { 100 };

View file

@ -28,5 +28,5 @@ set(SOURCES
)
serenity_bin(WindowServer)
target_link_libraries(WindowServer LibCore LibGfx LibThread LibPthread LibIPC)
target_link_libraries(WindowServer LibCore LibGfx LibThreading LibIPC)
serenity_install_headers(Services/WindowServer)

View file

@ -18,7 +18,7 @@
#include <LibGfx/Font.h>
#include <LibGfx/Painter.h>
#include <LibGfx/StylePainter.h>
#include <LibThread/BackgroundAction.h>
#include <LibThreading/BackgroundAction.h>
namespace WindowServer {
@ -609,7 +609,7 @@ bool Compositor::set_wallpaper_mode(const String& mode)
bool Compositor::set_wallpaper(const String& path, Function<void(bool)>&& callback)
{
LibThread::BackgroundAction<RefPtr<Gfx::Bitmap>>::create(
Threading::BackgroundAction<RefPtr<Gfx::Bitmap>>::create(
[path] {
return Gfx::Bitmap::load_from_file(path);
},