|
join 1.0
lightweight network framework library
|
basic proactor class. More...
#include <proactor.hpp>


Public Member Functions | |
| BasicProactor () | |
| initialize the proactor and its I/O backend. | |
| BasicProactor (const BasicProactor &other)=delete | |
| copy constructor. | |
| BasicProactor & | operator= (const BasicProactor &other)=delete |
| copy assignment operator. | |
| BasicProactor (BasicProactor &&other)=delete | |
| move constructor. | |
| BasicProactor & | operator= (BasicProactor &&other)=delete |
| move assignment operator. | |
| ~BasicProactor () noexcept | |
| destroy instance. | |
| int | submit (IoOperation *op, bool flush=false, bool sync=false) noexcept |
| submit an asynchronous operation to the proactor. | |
| int | cancel (IoOperation *op, bool flush=false, bool sync=false) noexcept |
| cancel an in-flight operation. | |
| void | run () |
| run the event loop (blocking). | |
| void | stop (bool sync=true) noexcept |
| stop the event loop. | |
| int | mlock () const noexcept |
| lock proactor command queue memory in RAM. | |
| bool | isRunning () const noexcept |
| check if the event loop is running. | |
| bool | isProactorThread () const noexcept |
| check if the calling thread is the proactor thread. | |
Public Member Functions inherited from join::EventHandler | |
| EventHandler ()=default | |
| create instance. | |
| EventHandler (const EventHandler &other)=default | |
| copy constructor. | |
| EventHandler & | operator= (const EventHandler &other)=default |
| copy assignment operator. | |
| EventHandler (EventHandler &&other)=default | |
| move constructor. | |
| EventHandler & | operator= (EventHandler &&other)=default |
| move assignment operator. | |
| virtual | ~EventHandler ()=default |
| destroy instance. | |
Additional Inherited Members | |
Protected Member Functions inherited from join::EventHandler |
basic proactor class.
|
inlineexplicit |
initialize the proactor and its I/O backend.
MIT License
Copyright (c) 2026 Mathieu Rabine
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
|
inlinenoexcept |
destroy instance.
|
inlinenoexcept |
cancel an in-flight operation.
| op | operation to cancel. |
| flush | call io_uring_submit after pushing the cancel SQE if true (io_uring only). |
| sync | wait for cancellation acknowledgment if true (default: false). |
|
inlinenoexcept |
check if the calling thread is the proactor thread.
|
inlinenoexcept |
check if the event loop is running.
|
inlinenoexcept |
lock proactor command queue memory in RAM.
|
delete |
move assignment operator.
| other | other object to move. |
|
delete |
copy assignment operator.
| other | other object to copy. |
|
inline |
run the event loop (blocking).
|
inlinenoexcept |
stop the event loop.
| sync | wait for loop termination if true. |
|
inlinenoexcept |
submit an asynchronous operation to the proactor.
| op | operation to submit. |
| flush | call io_uring_submit after pushing the SQE if true (io_uring only). |
| sync | wait for submission acknowledgment if true (default: false). |