libscoa:类似于Erlang的轻量级C ++ actor框架

时间:2021-05-16 23:13:33
【文件属性】:
文件名称:libscoa:类似于Erlang的轻量级C ++ actor框架
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-16 23:13:33
actor asynchronous-programming message-passing C++ 利斯科 Scoa:演员的自我修养。 libscoa是C ++ 17中的玩具演员模型运行时。 用法 hello.cc打印Hello, world! 向屏幕。 # include " libscoa.h " class foo_be : public scoa ::actor_be { public: auto be () { return scoa::match{ [&] { scoa::asio::printf ( " Hello, world! \n " ); stop (); } }; } }; int main () { scoa::ctx ctx; foo_be foo;
【文件预览】:
libscoa-master
----actor.h(545B)
----test_util_misc.cc(278B)
----util.h(3KB)
----test_ion.cc(767B)
----LICENSE(1KB)
----test_actor.cc(254B)
----ctx.h(3KB)
----.gitignore(537B)
----ion.h(2KB)
----test_spmcq.cc(647B)
----Makefile(66B)
----README.md(2KB)

网友评论