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.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef SMO_SUBCONSCIOUS_THREAD_H
|
||||
#define SMO_SUBCONSCIOUS_THREAD_H
|
||||
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include <spinscale/co/invokers.h>
|
||||
#include <spinscale/co/postingPromise.h>
|
||||
|
||||
namespace smo {
|
||||
|
||||
struct SubconsciousThreadTag
|
||||
{
|
||||
static boost::asio::io_service &io_service();
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
using SubconsciousPostingPromise =
|
||||
sscl::co::TaggedPostingPromise<T, SubconsciousThreadTag>;
|
||||
|
||||
template <typename T>
|
||||
using SubconsciousViralPostingInvoker =
|
||||
sscl::co::ViralPostingInvoker<SubconsciousPostingPromise, T>;
|
||||
|
||||
} // namespace smo
|
||||
|
||||
#endif // SMO_SUBCONSCIOUS_THREAD_H
|
||||
Reference in New Issue
Block a user