mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd::ctx::parallel: Block interruption when calling sender().
This commit is contained in:
parent
33601e88a1
commit
3e9b830206
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,7 @@ template<class arg>
|
||||||
void
|
void
|
||||||
ircd::ctx::parallel<arg>::operator()(const arg &a)
|
ircd::ctx::parallel<arg>::operator()(const arg &a)
|
||||||
{
|
{
|
||||||
|
const uninterruptible ui;
|
||||||
rethrow_any_exception();
|
rethrow_any_exception();
|
||||||
assert(avail());
|
assert(avail());
|
||||||
this->a.at(nextpos()) = a;
|
this->a.at(nextpos()) = a;
|
||||||
|
@ -84,6 +85,7 @@ template<class arg>
|
||||||
void
|
void
|
||||||
ircd::ctx::parallel<arg>::operator()()
|
ircd::ctx::parallel<arg>::operator()()
|
||||||
{
|
{
|
||||||
|
const uninterruptible ui;
|
||||||
rethrow_any_exception();
|
rethrow_any_exception();
|
||||||
assert(avail());
|
assert(avail());
|
||||||
sender();
|
sender();
|
||||||
|
|
Loading…
Reference in a new issue