Files
salmanoff/smocore/include/simulator/simulatorThread.h
T
hayodea cde2737876 Libspinscale: Initial top-level SMO port to coroutine framework
We haven't ported everything. Just the top-level methods. We'll
dig in to the leaf stuff later. Surprisingly, this all went without
any real difficulties.

Runs like a charm on first try.
2026-05-24 23:26:18 -04:00

28 lines
604 B
C++

#ifndef SMO_SIMULATOR_THREAD_H
#define SMO_SIMULATOR_THREAD_H
#include <boost/asio/io_service.hpp>
#include <spinscale/co/invokers.h>
#include <spinscale/co/postingPromise.h>
namespace smo {
namespace simulator {
struct SimulatorThreadTag
{
static boost::asio::io_service &io_service();
};
template <typename T>
using SimulatorPostingPromise =
sscl::co::TaggedPostingPromise<T, SimulatorThreadTag>;
template <typename T>
using SimulatorViralPostingInvoker =
sscl::co::ViralPostingInvoker<SimulatorPostingPromise, T>;
} // namespace simulator
} // namespace smo
#endif // SMO_SIMULATOR_THREAD_H