Develop and Download Open Source Software

Browse Subversion Repository

Contents of /WinCS/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download) (as text)
Wed Feb 10 18:21:00 2010 UTC (14 years, 3 months ago) by sho1get
File MIME type: text/x-chdr
File size: 848 byte(s)


1 #pragma once
2
3 //////////////////////////////////////////////////////////////////////////
4
5 class CTaskManager
6 {
7 public:
8 CTaskManager();
9 virtual ~CTaskManager();
10
11 void InitDataQueue();
12 void CallBackPolling();
13 BOOL DataEnqueue(const CByteArray &data);
14 BOOL DataDequeue(CByteArray &data);
15 int GetQueueSize();
16
17 void SetPluginInitList(const NodeInitList &list) { m_PlgInitList.Copy(list); }
18 void GetPluginInitList(NodeInitList &list) { list.Copy(m_PlgInitList); }
19
20 protected:
21 typedef struct _DataQueue
22 {
23 CCriticalSection cs;
24 CByteArray Queue[WCS_QUEUE_SIZE];
25 int nCount;
26 int nIndex;
27 int nPoint;
28 }
29 DataQueue, *LPDataQueue;
30
31 NodeInitList m_PlgInitList;
32 DataQueue m_DataQueue;
33 HANDLE m_hTimer;
34 };
35
36 //////////////////////////////////////////////////////////////////////////

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26