0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 08:21:09 +01:00

ircd::ctx: Add critical_assertion for when_() templates.

This commit is contained in:
Jason Volk 2019-07-17 18:10:34 -07:00
parent 130a86e27c
commit 48468a32f0

View file

@ -64,6 +64,8 @@ ircd::ctx::when_any(it first,
const it &last,
F&& closure)
{
const critical_assertion ca;
promise<it> p;
future<it> ret(p);
for(auto f(first); f != last; ++f)
@ -108,6 +110,8 @@ ircd::ctx::when_all(it first,
const it &last,
F&& closure)
{
const critical_assertion ca;
promise<void> p;
future<void> ret(p);
for(; first != last; ++first)