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__
11class SerialPort;
12
25class DCLCAPI SerialPollThread : protected PollThread
26{
28public:
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
85protected:
86 virtual int run();
87
88 HANDLE __pollInterrupt;
89};
90#else
92#endif // __WINNT__
93
94__DCL_END_NAMESPACE
95
96#endif // __DCL_SERIAL_POLL_THREAD_H__
#define NULL
Definition Config.h:312
#define DCLCAPI
Definition Config.h:95
wchar_t char_t
Definition Config.h:247
#define __DCL_THROWS1(e)
Definition Config.h:152
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:227
pthread_t thread_t
Definition Object.h:27
__DCL_BEGIN_NAMESPACE typedef PollThread SerialPollThread
virtual int run()