DCL
3.7.4
Loading...
Searching...
No Matches
SerialPollThread.h
Go to the documentation of this file.
1
#ifndef __DCL_SERIAL_POLL_THREAD_H__
2
#define __DCL_SERIAL_POLL_THREAD_H__ 20110224
3
4
#ifndef __DCL_POLL_THREAD_H__
5
#include <
dcl/PollThread.h
>
6
#endif
7
8
__DCL_BEGIN_NAMESPACE
9
10
#ifdef __WINNT__
11
class
SerialPort
;
12
25
class
DCLCAPI
SerialPollThread
:
protected
PollThread
26
{
27
DECLARE_CLASSINFO
(
SerialPollThread
)
28
public
:
29
SerialPollThread
(
const
char_t
* _name =
NULL
);
30
virtual
~SerialPollThread
();
31
32
void
start()
__DCL_THROWS1
(
SysError
*)
33
{
34
Thread::start();
35
}
36
37
int
join()
38
{
39
return
Thread::join();
40
}
41
42
bool
started()
const
43
{
44
return
Thread::started();
45
}
46
47
thread_t
thread()
const
48
{
49
return
Thread::thread();
50
}
51
52
const
String& name()
const
53
{
54
return
Thread::name();
55
}
56
69
virtual
bool
add(PollAble* _pPollAble,
short
_events)
70
__DCL_THROWS1
(IOException*);
71
77
virtual
bool
remove(PollAble* _pPollAble);
78
83
void
terminate();
84
85
protected
:
86
virtual
int
run
();
87
88
HANDLE __pollInterrupt;
89
};
90
#else
91
typedef
PollThread
SerialPollThread
;
92
#endif
// __WINNT__
93
94
__DCL_END_NAMESPACE
95
96
#endif
// __DCL_SERIAL_POLL_THREAD_H__
NULL
#define NULL
Definition
Config.h:312
DCLCAPI
#define DCLCAPI
Definition
Config.h:95
char_t
wchar_t char_t
Definition
Config.h:247
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:152
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:227
thread_t
pthread_t thread_t
Definition
Object.h:27
PollThread.h
SerialPollThread
__DCL_BEGIN_NAMESPACE typedef PollThread SerialPollThread
Definition
SerialPollThread.h:91
PollThread
Definition
PollThread.h:35
PollThread::run
virtual int run()
Definition
PollThread.cpp:97
SerialPort
Definition
SerialPort.h:52
SysError
Definition
Exception.h:63
include
dcl
SerialPollThread.h
Generated by
1.14.0