Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-mv/blob/main/docs/external/nightdriver/666/harness/stubs/modern/itaskservice.h # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / docs / external / nightdriver / 666 / harness / stubs / modern / itaskservice.h` 18 lines ยท 738 bytes Raw Blame History 1 // Host stub: minimal ITaskService surface used by SocketServer. Not NightDriverStrip code. 2 #pragma once 3 #include "globals.h" 4 #include 5 struct IService { virtual ~IService() = default; virtual const char* Name() const = 0; }; 6 class ITaskService : public IService 7 { 8 public: 9 bool Start() { return true; } 10 void Stop() { _shutdownRequested = true; } 11 protected: 12 struct TaskConfig { const char* taskName; size_t stackSize; int priority; int core; uint32_t shutdownTimeoutMs; }; 13 virtual TaskConfig GetTaskConfig() const = 0; 14 virtual void Run() = 0; 15 virtual void OnBeforeWaitForStop() {} 16 bool ShouldShutdown() const { return _shutdownRequested.load(); } 17 std::atomic _shutdownRequested{false}; 18 };