Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Mutex.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
11
13
21class Mutex
22{
23public:
24 Mutex();
26
30 Mutex(const Mutex &);
31 ~Mutex();
32
34
35
37
41 Mutex &operator=(const Mutex &);
42
44
46
48
55 void lock() const;
56
58
62 void unlock() const;
63
65
66private:
67 friend class CondVarBase;
68 ArchMutex m_mutex;
69};
ArchMutexImpl * ArchMutex
Opaque mutex type. An opaque type representing a mutex.
Definition IArchMultithread.h:39
void lock() const
Lock the mutex.
Definition Mutex.cpp:36
void unlock() const
Unlock the mutex.
Definition Mutex.cpp:41
Mutex()
Definition Mutex.cpp:16
Mutex & operator=(const Mutex &)
Does nothing.
Definition Mutex.cpp:31
friend class CondVarBase
Definition Mutex.h:67
~Mutex()
Definition Mutex.cpp:26