CACAO
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
source
cacao
src
threads
none
mutex-none.hpp
Go to the documentation of this file.
1
/* src/threads/NONE/mutex-none.hpp - dummy mutual exclusion functions
2
3
Copyright (C) 2008
4
CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5
Copyright (C) 2008 Theobroma Systems Ltd.
6
7
This file is part of CACAO.
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License as
11
published by the Free Software Foundation; either version 2, or (at
12
your option) any later version.
13
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23
24
*/
25
26
27
#ifndef _MUTEX_NONE_HPP
28
#define _MUTEX_NONE_HPP
29
30
/**
31
* Dummy implementation of a mutex.
32
*/
33
class
Mutex
{
34
public
:
35
void
lock
() {}
36
void
unlock
() {}
37
};
38
39
#endif
/* _MUTEX_NONE_HPP */
40
41
42
/*
43
* These are local overrides for various environment variables in Emacs.
44
* Please do not remove this and leave it at the end of the file, where
45
* Emacs will automagically detect them.
46
* ---------------------------------------------------------------------
47
* Local variables:
48
* mode: c++
49
* indent-tabs-mode: t
50
* c-basic-offset: 4
51
* tab-width: 4
52
* End:
53
* vim:noexpandtab:sw=4:ts=4:
54
*/
Mutex
Dummy implementation of a mutex.
Definition:
mutex-none.hpp:33
Mutex::unlock
void unlock()
Unlocks the given mutex object and checks for errors.
Definition:
mutex-none.hpp:36
Mutex::lock
void lock()
Locks the given mutex object and checks for errors.
Definition:
mutex-none.hpp:35
Generated on Fri Aug 4 2017 03:01:46 for CACAO by
1.8.5