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
10
#include "
arch/IArchMultithread.h
"
11
13
21
class
Mutex
22
{
23
public
:
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
66
private
:
67
friend
class
CondVarBase
;
68
ArchMutex
m_mutex;
69
};
IArchMultithread.h
ArchMutex
ArchMutexImpl * ArchMutex
Opaque mutex type. An opaque type representing a mutex.
Definition
IArchMultithread.h:39
Mutex::lock
void lock() const
Lock the mutex.
Definition
Mutex.cpp:36
Mutex::unlock
void unlock() const
Unlock the mutex.
Definition
Mutex.cpp:41
Mutex::Mutex
Mutex()
Definition
Mutex.cpp:16
Mutex::operator=
Mutex & operator=(const Mutex &)
Does nothing.
Definition
Mutex.cpp:31
Mutex::CondVarBase
friend class CondVarBase
Definition
Mutex.h:67
Mutex::~Mutex
~Mutex()
Definition
Mutex.cpp:26
src
lib
mt
Mutex.h
Generated by
1.14.0