27 const auto me = std::this_thread::get_id();
28 if (owner_.load(std::memory_order_acquire) ==
me) {
33 owner_.store(
me, std::memory_order_release);
45 owner_.store(std::thread::id{}, std::memory_order_release);
68 if (!mutex_.try_lock_shared()) {
69 logger->info(
"[{}] waiting: a sandboxed delegation has this server "
70 "set re-rooted; dispatching once it restores",
what);
72 logger->info(
"[{}] working directory restored — dispatching",
what);
83 mutex_.unlock_shared();
93 return owner_.load(std::memory_order_acquire)
94 == std::this_thread::get_id();
105 : lock_(lock), held_(lock.lock_shared(
what)) {}
spdlog initialization and logger access.
ENTROPIC_EXPORT std::shared_ptr< spdlog::logger > get(const std::string &name)
Get or create a named logger.
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver