Compilation error : ‘this’ cannot be implicitly captured in this context August 30, 2023 by Tarik You need to capture the this pointer: this->cv.wait(lk, [this]{return ready;});