ETL
0.04.19
Main Page
Related Pages
Classes
Files
File List
File Members
ETL
_mutex_null.h
Go to the documentation of this file.
1
25
/* === S T A R T =========================================================== */
26
27
#ifndef __ETL__MUTEX_NULL_H_
28
#define __ETL__MUTEX_NULL_H_
29
30
/* === H E A D E R S ======================================================= */
31
/* === M A C R O S ========================================================= */
32
33
/* === C L A S S E S & S T R U C T S ======================================= */
34
35
_ETL_BEGIN_NAMESPACE
36
37
class
mutex_null
38
{
39
public
:
40
41
mutex_null
(){}
42
~mutex_null
(){}
44
/*
45
class lock
46
{
47
mutex *_mtx;
48
public:
49
lock(mutex &x):_mtx(&x) { _mtx->lock_mutex(); }
50
~lock() { _mtx->unlock_mutex(); }
51
mutex &get() { return *_mtx; }
52
};
53
*/
54
class
lock
55
{
56
public
:
57
lock
(
mutex_null
&
/*x*/
) { }
58
};
59
60
void
lock_mutex
(){}
61
bool
try_lock_mutex
(){
return
true
;}
62
void
unlock_mutex
(){}
63
};
64
65
_ETL_END_NAMESPACE
66
67
/* === E X T E R N S ======================================================= */
68
69
/* === E N D =============================================================== */
70
71
#endif
Generated on Mon Nov 16 2015 15:32:03 for ETL by
1.8.1.2