summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-04 19:17:24 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-04 19:17:24 +0100
commitb3665262dbbe1de0324747f933a69a876fc75ca6 (patch)
tree057449161000b39df85b112ca8647fdb882db449 /include
parent4b2b47d6edc8c8dd75f260fed3286f5dc4fe9374 (diff)
feat: asio.hpp: API design improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/ocl/asio.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ocl/asio.hpp b/include/ocl/asio.hpp
index 1e4abf5..43ebd71 100644
--- a/include/ocl/asio.hpp
+++ b/include/ocl/asio.hpp
@@ -23,11 +23,12 @@
namespace ocl::asio
{
- using io_context = boost::asio::io_context;
+
+ using io_context_type = boost::asio::io_context;
using run_pred_type = void(*)();
template <run_pred_type IOCPred>
- inline void run_loop(io_context& ioc)
+ inline void run(io_context_type& ioc)
{
try
{