#pragma once

#include <atomic>
#include <functional>

namespace softbus::core {

class PlatformSignal {
public:
    using Handler = std::function<void()>;

    static void install(Handler handler);
    static bool shouldStop();
    static void requestStop();

private:
    static std::atomic<bool> stopRequested_;
};

} // namespace softbus::core
