| Line | |
|---|
| 1 | /* $Id: vmutex.h,v 1.6 2002-04-07 14:34:30 sandervl Exp $ */
|
|---|
| 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 |
|
|---|
| 11 | #include <odincrt.h>
|
|---|
| 12 |
|
|---|
| 13 | class VMutex
|
|---|
| 14 | {
|
|---|
| 15 | public:
|
|---|
| 16 | VMutex();
|
|---|
| 17 | ~VMutex();
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 20 | VOID enter() { DosEnterCriticalSection(&critsect); };
|
|---|
| 21 | VOID leave() { DosLeaveCriticalSection(&critsect); };
|
|---|
| 22 |
|
|---|
| 23 | protected:
|
|---|
| 24 | CRITICAL_SECTION_OS2 critsect;
|
|---|
| 25 | };
|
|---|
| 26 |
|
|---|
| 27 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.