svn-gvsig-desktop / tags / v1_9_Build_1252 / libraries / libjni-readecw-linux / include / NCSJPCEvent.h @ 42158
History | View | Annotate | Download (1.31 KB)
1 |
/********************************************************
|
---|---|
2 |
** Copyright 2002 Earth Resource Mapping Ltd.
|
3 |
** This document contains proprietary source code of
|
4 |
** Earth Resource Mapping Ltd, and can only be used under
|
5 |
** one of the three licenses as described in the
|
6 |
** license.txt file supplied with this distribution.
|
7 |
** See separate license.txt file for license details
|
8 |
** and conditions.
|
9 |
**
|
10 |
** This software is covered by US patent #6,442,298,
|
11 |
** #6,102,897 and #6,633,688. Rights to use these patents
|
12 |
** is included in the license agreements.
|
13 |
**
|
14 |
** FILE: $Archive: /NCS/Source/include/NCSJPCEvent.h $
|
15 |
** CREATED: 05/12/2002 3:27:34 PM
|
16 |
** AUTHOR: Simon Cope
|
17 |
** PURPOSE: NCSJPCEvent class
|
18 |
** EDITS: [xx] ddMmmyy NAME COMMENTS
|
19 |
*******************************************************/
|
20 |
|
21 |
#ifndef NCSJPCEVENT_H
|
22 |
#define NCSJPCEVENT_H
|
23 |
|
24 |
#ifndef NCSJPCTYPES_H
|
25 |
#include "NCSJPCTypes.h" |
26 |
#endif // NCSJPCTYPES_H |
27 |
|
28 |
// Segment class
|
29 |
class NCSJPC_EXPORT_ALL CNCSJPCEvent { |
30 |
public:
|
31 |
CNCSJPCEvent(bool bManualReset = false, bool bInitialState = false, char *pLockName = NULL); |
32 |
virtual ~CNCSJPCEvent(); |
33 |
bool Set();
|
34 |
bool Reset();
|
35 |
bool Wait(NCSTimeStampMs tsTimeout = -1); |
36 |
|
37 |
private:
|
38 |
#ifdef WIN32
|
39 |
HANDLE m_hEvent; |
40 |
#else
|
41 |
bool m_bManualReset;
|
42 |
char *m_pLockName;
|
43 |
CNCSMutex m_Mutex; |
44 |
bool m_bSignalled;
|
45 |
#endif
|
46 |
}; |
47 |
|
48 |
#endif // NCSJPCEVENT_H |