Skip to content

Commit

Permalink
Replace wait operation
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed May 21, 2024
1 parent 99c4881 commit 9028d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async/as/ThreadBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ class ThreadBase : public Base<Executor, InitParameter, Parameter> {
* Wait for the asynchronous call to finish
*/
void wait() override {
m_waiting = true;
pthread_mutex_unlock(&m_readerLock);
lock_spinlock(&m_writerLock);
// call wait synchronously here (TODO: move to output)
Base<Executor, InitParameter, Parameter>::wait();
m_phase = SEND_PHASE;
}

Expand Down

0 comments on commit 9028d77

Please sign in to comment.