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:
parent
bd17da9f9e
commit
c7104e7512
2 changed files with 66 additions and 0 deletions
|
@ -13,6 +13,8 @@
|
|||
namespace Threading {
|
||||
|
||||
class Mutex {
|
||||
friend class ConditionVariable;
|
||||
|
||||
public:
|
||||
Mutex()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue