DCL
4.0
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
#if __DCL_WINDOWS
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
{ Thread::start(); }
34
int
join()
35
{
return
Thread::join(); }
36
bool
started()
const
37
{
return
Thread::started(); }
38
unsigned
long
id()
const
39
{
return
Thread::id(); }
40
const
String& name()
const
41
{
return
Thread::name(); }
42
55
virtual
bool
add(PollAble* _pPollAble,
short
_events)
56
__DCL_THROWS1
(IOException*);
57
63
virtual
bool
remove(PollAble* _pPollAble);
64
69
void
terminate();
70
71
protected
:
72
virtual
int
run
();
73
74
HANDLE __pollInterrupt;
75
};
76
#else
77
typedef
PollThread
SerialPollThread
;
78
#endif
// __DCL_WINDOWS
79
80
__DCL_END_NAMESPACE
81
82
#endif
// __DCL_SERIAL_POLL_THREAD_H__
NULL
#define NULL
Definition
Config.h:340
DCLCAPI
#define DCLCAPI
Definition
Config.h:100
char_t
wchar_t char_t
Definition
Config.h:275
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:167
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:210
PollThread.h
SerialPollThread
__DCL_BEGIN_NAMESPACE typedef PollThread SerialPollThread
Definition
SerialPollThread.h:77
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