runloop

Event processing loop for scheduling and coordinating asynchronous work; fire and forget.

4
1
C++

Runloop Unix Build Status
Windows Build status

Example

#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;
}

License

© 2013-2018 Corvusoft Limited, United Kingdom. All rights reserved.

The Runloop framework is dual licensed; See LICENSE for full details.

Support

Please contact [email protected], for support and licensing options including bespoke software development, testing, design consultation, training, mentoring and code review.

Build

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.

Documentation

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.

Minimum Requirements

Resource Requirement
Compiler C++14 compliant or above
OS BSD, Linux, Mac OSX, Windows

Contact

Method Description
Twitter Tweet us your questions & feature requests.
[email protected] Support related queries.
[email protected] Sale related queries.