Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cJobThreadSeq.h
Go to the documentation of this file.
1 //
5 //
6 
7 #ifndef _INC_cJobThreadSeq_H
8 #define _INC_cJobThreadSeq_H
9 #ifndef NO_PRAGMA_ONCE
10 #pragma once
11 #endif
12 
13 #include "cJobBase.h"
14 #include "cThread.h"
15 
16 namespace GrayLib
17 {
19  : public cThreadNamed<cJobThreadSeq>
20  {
24 
26 
27  public:
30 
31  protected:
32  virtual void WakeThread() override;
33  virtual THREAD_EXITCODE_t Run() override;
34 
35  public:
36  cJobThreadSeq(TIMESYSD_t tPollFreq = 60 * cTimeSys::k_FREQ);
37  virtual ~cJobThreadSeq();
38 
39  STDMETHOD_(cString, get_Name)() const override
40  {
41  return "JobThreadSeq";
42  }
43 
44  ITERATE_t AddJobX(cJobBase* pJob);
45  void RemoveAllJobs();
46  };
47 };
48 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
Definition: cJobBase.h:175
Definition: cJobBase.h:23
Definition: cJobThreadSeq.h:20
STDMETHOD_(cString, get_Name)() const override
Definition: cJobThreadSeq.h:39
TIMESYSD_t m_tPollFreq
How often to poll? default = 60 sec.
Definition: cJobThreadSeq.h:29
cJobArray m_Jobs
the array of jobs i run when i can. sequentially.
Definition: cJobThreadSeq.h:28
Definition: cThread.h:256
static const TIMESYS_t k_FREQ
milliSec per Sec
Definition: cTimeSys.h:100
Definition: cMesh.h:22
INT32 TIMESYSD_t
Time delta. signed milli-Seconds Span. cTimeSys::k_DMAX, cTimeSys::k_INF = MAILSLOT_WAIT_FOREVER.
Definition: cTimeSys.h:28
int ITERATE_t
like size_t but signed
Definition: Index.h:28