Rev | Line | |
---|
[8200] | 1 | /* $Id: vmutex.h,v 1.6 2002-04-07 14:34:30 sandervl Exp $ */
|
---|
[4] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | *
|
---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 | #ifndef __VMUTEX_H__
|
---|
| 9 | #define __VMUTEX_H__
|
---|
| 10 |
|
---|
[8200] | 11 | #include <odincrt.h>
|
---|
[4] | 12 |
|
---|
| 13 | class VMutex
|
---|
| 14 | {
|
---|
| 15 | public:
|
---|
[8200] | 16 | VMutex();
|
---|
[4] | 17 | ~VMutex();
|
---|
| 18 |
|
---|
| 19 | public:
|
---|
[8200] | 20 | VOID enter() { DosEnterCriticalSection(&critsect); };
|
---|
| 21 | VOID leave() { DosLeaveCriticalSection(&critsect); };
|
---|
[4] | 22 |
|
---|
| 23 | protected:
|
---|
[8200] | 24 | CRITICAL_SECTION_OS2 critsect;
|
---|
[4] | 25 | };
|
---|
| 26 |
|
---|
| 27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.