#include <memory>
#include <cstdlib>
#include <corvusoft/core/run_loop.hpp>
using namespace std;
using corvusoft::core::RunLoop;
int main( const int, const char** )
{
int count = 0;
const auto counter = [ &count ]( void ) { count++; return error_code( ); };
auto runloop = make_shared< RunLoop >( );
runloop->launch( counter );
runloop->launch( counter );
runloop->launch( counter );
runloop->start( );
runloop->wait( );
runloop->stop( );
return EXIT_SUCCESS;
}
© 2013-2018 Corvusoft Limited, United Kingdom. All rights reserved.
The Runloop framework is dual licensed; See LICENSE for full details.
Please contact sales@corvusoft.co.uk, for support and licensing options including bespoke software development, testing, design consultation, training, mentoring and code review.
Unix
git clone --recursive https://github.com/corvusoft/runloop.git
mkdir runloop/build
cd runloop/build
cmake ..
make [-j CPU_CORES+1] install
make test
Windows
git clone --recursive https://github.com/corvusoft/runloop.git
mkdir runloop/build
cd runloop/build
cmake -G "Visual Studio 15 2017" ..
cmake --build . --target ALL_BUILD --config Release
ctest
You will now find all required components installed in the distribution folder.
Please submit all enhancements, proposals, and defects via the issue tracker.
This codebase is intended to be as self documenting as possible. We have supplied many test cases to help aid developers.
You can locate the latest API documentation here.
Resource | Requirement |
---|---|
Compiler | C++14 compliant or above |
OS | BSD, Linux, Mac OSX, Windows |
Method | Description |
---|---|
Tweet us your questions & feature requests. | |
support@corvusoft.co.uk | Support related queries. |
sales@corvusoft.co.uk | Sale related queries. |