Category : actor

everyone. I’m trying to write some code to implement a concurrent system via actor pattern. The actor’s interface is like: template <class SourceMessageType, class MessageType> class actor{ public: using value_type = MessageType; void process_message(SourceMessageType&& message); template <class EmitFunction> void on_message(EmitFunction emit); private: std::function<void(MessageType&&)> m_emit; }; In my program, there are two actors, one is Service ..

Read more

I am using CAF(https://github.com/actor-framework) to work on my project, I want to add all the libraries to work_git. It’s working with sqlite3 and here’s what I did: work_git CMake file: cmake_minimum_required(VERSION 3.17) project(x) set(CMAKE_CXX_STANDARD 17) add_subdirectory(resources/sqlite3) add_subdirectory(resources/caf) add_executable(work_git main.cpp) target_link_libraries(work_git sqlite3 caf) project structure: |_ _ _ _ work_git | | _ _ _ _ ..

Read more