root / trunk / libraries / libjni-ecwcompress / include / NCSJPCEVENT.H @ 1429
History | View | Annotate | Download (1.09 KB)
1 |
/********************************************************
|
---|---|
2 |
** Copyright 2002 Earth Resource Mapping Pty Ltd.
|
3 |
** This document contains unpublished source code of
|
4 |
** Earth Resource Mapping Pty Ltd. This notice does
|
5 |
** not indicate any intention to publish the source
|
6 |
** code contained herein.
|
7 |
**
|
8 |
** FILE: $Archive: /NCS/Source/include/NCSJPCEvent.h $
|
9 |
** CREATED: 05/12/2002 3:27:34 PM
|
10 |
** AUTHOR: Simon Cope
|
11 |
** PURPOSE: NCSJPCEvent class
|
12 |
** EDITS: [xx] ddMmmyy NAME COMMENTS
|
13 |
*******************************************************/
|
14 |
|
15 |
#ifndef NCSJPCEVENT_H
|
16 |
#define NCSJPCEVENT_H
|
17 |
|
18 |
#ifndef NCSJPCTYPES_H
|
19 |
#include "NCSJPCTypes.h" |
20 |
#endif // NCSJPCTYPES_H |
21 |
|
22 |
// Segment class
|
23 |
class NCSJPC_EXPORT_ALL CNCSJPCEvent { |
24 |
public:
|
25 |
CNCSJPCEvent(bool bManualReset = false, bool bInitialState = false, char *pLockName = NULL); |
26 |
virtual ~CNCSJPCEvent(); |
27 |
bool Set();
|
28 |
bool Reset();
|
29 |
bool Wait(NCSTimeStampMs tsTimeout = -1); |
30 |
|
31 |
private:
|
32 |
#ifdef WIN32
|
33 |
HANDLE m_hEvent; |
34 |
#else
|
35 |
bool m_bManualReset;
|
36 |
char *m_pLockName;
|
37 |
CNCSMutex m_Mutex; |
38 |
bool m_bSignalled;
|
39 |
#endif
|
40 |
}; |
41 |
|
42 |
#endif // NCSJPCEVENT_H |