source: trunk/include/vmutex.h@ 4

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

File size: 507 bytes
Line 
1/* $Id: vmutex.h,v 1.1 1999-05-24 20:19:07 ktk 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#define VMUTEX_RETURN_IMM 0
12#define VMUTEX_WAIT_FOREVER -1
13
14#ifdef _OS2WIN_H
15#define HMTX DWORD
16#endif
17
18class VMutex
19{
20public:
21 VMutex (void);
22 ~VMutex();
23
24public:
25 VOID enter(ULONG timeout = VMUTEX_WAIT_FOREVER);
26 VOID leave();
27 int getNrBlocked() { return waiting; };
28
29protected:
30 HMTX sem_handle;
31 int waiting;
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.