1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:54:58 +00:00
serenity/Userland/Libraries/LibThreading
Andreas Kling c40780d404 LibThreading: Reimplement Lock in terms of pthread_mutex_t
This class was previously a spinlock that would call sys$donate()
to donate its timeslice to whichever thread was holding the lock.

Now that pthread_mutex_t has a fast path, let's implement Lock on top
of that instead and get rid of the last remaining user of sys$donate().
2021-07-05 23:30:15 +02:00
..
BackgroundAction.cpp LibThreading: Wake up the background worker thread when there's work 2021-07-04 18:56:08 +02:00
BackgroundAction.h LibThreading: Fix BackgroundAction result use-after-free 2021-07-05 18:11:58 +02:00
CMakeLists.txt Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
Lock.h LibThreading: Reimplement Lock in terms of pthread_mutex_t 2021-07-05 23:30:15 +02:00
Thread.cpp LibThreading: Add new detach() API to Thread 2021-07-02 17:52:45 +02:00
Thread.h LibThreading: Add new detach() API to Thread 2021-07-02 17:52:45 +02:00