LRT14
1.0
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
lock_on.h
1
#ifndef RHESUS_LOCK_ON_H_
2
#define RHESUS_LOCK_ON_H_
3
4
#include "Mutex.h"
5
6
namespace
Rhesus
7
{
8
namespace
Toolkit
9
{
10
namespace
Tasks
11
{
12
class
lock_on
13
{
14
public
:
15
lock_on(Mutex& syncObj)
16
: m_syncObj(syncObj)
17
{
18
m_syncObj.Lock();
19
}
20
21
~lock_on()
22
{
23
m_syncObj.Unlock();
24
}
25
26
private
:
27
Mutex& m_syncObj;
28
};
29
}
30
}
31
}
32
33
#endif
Rhesus
Toolkit
Tasks
lock_on.h
Generated on Tue Feb 11 2014 00:29:48 for LRT14 by
1.8.3