19#ifndef CPPREALM_REALM_CORE_SCHEDULER_HPP
20#define CPPREALM_REALM_CORE_SCHEDULER_HPP
22#include <cpprealm/scheduler.hpp>
29namespace realm::internal {
39 void invoke(std::function<
void()> &&fn)
final;
62 [[nodiscard]]
bool can_invoke()
const noexcept final;
66 operator std::shared_ptr<util::Scheduler>();
68 std::shared_ptr<util::Scheduler> s;
71 std::shared_ptr<util::Scheduler> create_scheduler_shim(
const std::shared_ptr<scheduler>& s);
Definition: realm_core_scheduler.hpp:34
bool is_same_as(const scheduler *other) const noexcept final
Definition: realm_core_scheduler.cpp:14
bool can_invoke() const noexcept final
Definition: realm_core_scheduler.cpp:21
bool is_on_thread() const noexcept final
Definition: realm_core_scheduler.cpp:10
void invoke(std::function< void()> &&fn) final
Definition: realm_core_scheduler.cpp:6
Definition: scheduler.hpp:27