00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 class TestSched
00011 {
00012 public:
00016 TestSched()
00017 : index_( 0 )
00018 {
00019 if ( isInitPending_ ) {
00020 globalIndex_ = 0;
00021 isInitPending_ = 0;
00022 }
00023 }
00024 ~TestSched()
00025 {
00026 isInitPending_ = 1;
00027 }
00028
00029 void process( const Eref& e, ProcPtr p );
00030
00031 void zeroIndex() {
00032 index_ = 0 ;
00033 }
00034
00035 static const Cinfo* initCinfo();
00036 private:
00037 int index_;
00038 static int globalIndex_;
00039 static bool isInitPending_;
00040 };
00041