1234567891011121314151617181920212223242526272829 |
- //
- // BaseTaskQueue.h
- // LibDriveRating-CXX
- //
- // Created by Melo Yao on 6/9/14.
- // Copyright (c) 2014 AutoNavi. All rights reserved.
- //
- #ifndef __LibDriveRating_CXX__BaseTaskQueue__
- #define __LibDriveRating_CXX__BaseTaskQueue__
- #include "TQInterface.h"
- namespace tq
- {
- class BaseTask : public ITask
- {
- private:
- volatile bool _cancelled;
- public:
- BaseTask();
- void Run();
- virtual void Cancel();
- bool IsCancelled() const;
-
- virtual void Main() = 0;
- TaskCategory GetCategory() const {return NoCategory;}
- };
- }
- #endif /* defined(__LibDriveRating_CXX__BaseTaskQueue__) */
|