From 000102cf4ec40096cbc56b049617a3449bf2c7f3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 19 Mar 2021 11:20:13 -0700 Subject: [PATCH] ircd::cl: Add argument-ordered ergonomic constructor. --- include/ircd/cl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/ircd/cl.h b/include/ircd/cl.h index 6cc286413..0540e8486 100644 --- a/include/ircd/cl.h +++ b/include/ircd/cl.h @@ -164,6 +164,9 @@ struct ircd::cl::exec // Execute a kernel on a range. exec(kern &, const kern::range &, const opts & = opts_default); + // Execute a kernel on a range. + exec(kern &, const opts &, const kern::range &); + // Execute a barrier. exec(const opts &); }; @@ -253,3 +256,13 @@ ircd::cl::kern::kern(code &c, for(uint i(0); i < argc; ++i) this->arg(i, *datas[i]); } + +inline +ircd::cl::exec::exec(kern &kern, + const opts &opts, + const kern::range &range) +:exec +{ + kern, range, opts +} +{}