https://github.com/corvusoft/runloop
Event processing loop for scheduling and coordinating asynchronous work; fire and forget.
https://github.com/corvusoft/runloop
async-programming asynchronous asyncio runloop thread-pool
Last synced: 9 months ago
JSON representation
Event processing loop for scheduling and coordinating asynchronous work; fire and forget.
- Host: GitHub
- URL: https://github.com/corvusoft/runloop
- Owner: Corvusoft
- License: other
- Created: 2017-05-06T00:20:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T11:15:08.000Z (over 7 years ago)
- Last Synced: 2025-03-24T06:03:32.758Z (10 months ago)
- Topics: async-programming, asynchronous, asyncio, runloop, thread-pool
- Language: C++
- Homepage: http://www.corvusoft.co.uk
- Size: 97.7 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Runloop [](https://travis-ci.org/Corvusoft/runloop)
[](https://ci.appveyor.com/project/Corvusoft/runloop)
=============================================================================================================================
Example
-------
```C++
#include
#include
#include
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](LICENSE) for full details.
Support
-------
Please contact sales@corvusoft.co.uk, for support and licensing options including bespoke software development, testing, design consultation, training, mentoring and code review.
Build
-----
*Unix*
```bash
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*
```bash
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](http://github.com/corvusoft/runloop/issues) tracker.
Documentation
-------------
This codebase is intended to be as self documenting as possible. We have supplied many [test cases](https://github.com/corvusoft/runloop/tree/master/test) to help aid developers.
You can locate the latest API documentation [here](https://github.com/Corvusoft/runloop/tree/master/documentation).
Minimum Requirements
--------------------
| Resource | Requirement |
|:--------:|:-----------------------------------------------:|
| Compiler | C++14 compliant or above |
| OS | BSD, Linux, Mac OSX, Windows |
Contact
-------
| Method | Description |
|:--------------------------------------------|:--------------------------------------------|
| [Twitter](http://www.twitter.com/corvusoft) | Tweet us your questions & feature requests. |
| support@corvusoft.co.uk | Support related queries. |
| sales@corvusoft.co.uk | Sale related queries. |