std::chrono::milliseconds startDelay,
bool runOnce);
+ // Return true if the current function is being canceled
+ bool cancelAllFunctionsWithLock(std::unique_lock<std::mutex>& lock);
+ bool cancelFunctionWithLock(
+ std::unique_lock<std::mutex>& lock,
+ StringPiece nameID);
+
std::thread thread_;
// Mutex to protect our member variables.
std::string threadName_;
bool steady_{false};
+ bool cancellingCurrentFunction_{false};
};
}