source: trunk/include/vmutex.h

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 471 bytes
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
13class __declspec(dllexport) VMutex
14{
15public:
16 VMutex();
17 ~VMutex();
18
19public:
20 VOID enter() { DosEnterCriticalSection(&critsect); };
21 VOID leave() { DosLeaveCriticalSection(&critsect); };
22
23protected:
24 CRITICAL_SECTION_OS2 critsect;
25};
26
27#endif
Note: See TracBrowser for help on using the repository browser.