seq: fixed order of state set wakeup and signalling of completions
This was a subtle concurrency bug discovered and analyzed by Lewis Muir: if pvPutComplete or pvGetComplete are used inside a when-clause, waking up the state set before signalling completion could result in a deadlock.
Loading
Please register or sign in to comment