OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
XmlRpcMutex.h
Go to the documentation of this file.
1
#ifndef _XMLRPCMUTEX_H_
2
#define _XMLRPCMUTEX_H_
3
//
4
// XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
5
//
6
12
#if defined(_MSC_VER)
13
# pragma warning(disable:4786) // identifier was truncated in debug info
14
#endif
15
16
namespace
XmlRpc {
17
19
class
XmlRpcMutex
{
20
public
:
22
XmlRpcMutex
() :
_pMutex
(0) {}
23
25
~XmlRpcMutex
();
26
28
void
acquire
();
29
31
void
release
();
32
34
struct
AutoLock
{
36
AutoLock
(
XmlRpcMutex
& m) :
_m
(m) {
_m
.
acquire
(); }
38
~AutoLock
() {
_m
.
release
(); }
40
XmlRpcMutex
&
_m
;
41
};
42
43
private
:
44
46
void
*
_pMutex
;
47
48
};
// class XmlRpcMutex
49
50
}
// namespace XmlRpc
51
52
#endif // _XMLRPCMUTEX_H_
src
tier3
xmlrpcinterface
xmlrpc++
XmlRpcMutex.h
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2