0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 13:18:58 +02:00

ircd:🆑 Add argument-ordered ergonomic constructor.

This commit is contained in:
Jason Volk 2021-03-19 11:20:13 -07:00
parent 21472fcc5b
commit 000102cf4e

View file

@ -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
}
{}