1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibThreading: Add ConditionVariable wrapper

ConditionVariable is a thin wrapper over the pthread_cond_* APIs, just
as Mutex is a wrapper over pthread_mutex.

Because ConditionVariable might want to wait on a high-level Mutex, it
needs to be friends with it.
This commit is contained in:
kleines Filmröllchen 2021-08-29 02:03:50 +02:00 committed by Andreas Kling
parent bd17da9f9e
commit c7104e7512
2 changed files with 66 additions and 0 deletions

View file

@ -13,6 +13,8 @@
namespace Threading {
class Mutex {
friend class ConditionVariable;
public:
Mutex()
{