This repository contains an example of a handwritten dispatcher for SObjectizer-5.7 that allows having separate demands queues for agents bound to that dispatcher.
A C++ complier with support of C++17. We have tried gcc-7, clang-6 and Visual C++ 16.8.
This repository contains only source codes of the examples. SObjectizer's source code is not included into the repository. There are two ways to get the examples and all necessary dependencies.
There is a Releases section. It contains archives with all source codes (it means that an archive contains sources of the examples and sources
of all necessary subprojects). The simpliest way is to download a corresponding archive, unpack it, go into
so5_custom_queue_disps_demo/dev
, then compile and run.
It this case you need to have Ruby + MxxRu + various utilities which every Linux/FreeBSD/macOS-developer usually have (like git, tar, unzip and stuff like that). Then:
- Install Ruby, RubyGems and Rake (usually RubyGems is installed with Ruby but sometimes you have to install it separatelly).
- Install MxxRu:
gem install Mxx_ru
- Do git clone:
git clone https://github.com/Stiffstream/so5_custom_queue_disps_demo/releases
- Go into appropriate folder:
cd so5_custom_queue_disps_demo
- Run command
mxxruexternals
- Wait while add dependencies will be downloaded.
Then go to dev
subfolder, compile and run.
A well known chain of actions:
cd so5_custom_queue_disps_demo/dev
mkdir cmake_build
cd cmake_build
cmake -DCMAKE_INSTALL_PREFIX=target -DCMAKE_BUILD_TYPE=release ..
cmake --build . --config Release --target install
The demo_app
will be in target/bin
subfolder.
The following chain of actions is necessary for building with MxxRu:
cd so5_custom_queue_disps_demo/dev
ruby build.rb