Run macOS applications on your Windows desktop, with a background runtime and integrated app windows.
C++
#pragma once
#include <cstddef>
#include <cstdint>
#include <string_view>
namespace wsm::runtime {
inline bool runtime_idle_ready(bool running, bool desktop_ready, size_t windows, bool busy,
int64_t quiet_ms) {
return running && desktop_ready && windows == 0 && !busy && quiet_ms > 180000;
}
inline bool compact_requested(std::string_view marker) {
return marker == "asked\n" || marker == "asked\r\n" || marker == "asked";
}
inline bool maintenance_can_shutdown(uint64_t started, uint64_t current, bool desktop_ready,
size_t windows, bool busy) {
return started == current && desktop_ready && windows == 0 && !busy;
}
}