Update src/io/future.hpp

Co-authored-by: Jure Bajic <jure.bajic@memgraph.com>
This commit is contained in:
Tyler Neely 2022-08-08 13:27:06 +02:00 committed by GitHub
parent b2a8063a96
commit a4b1d5efb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ class Shared {
// so we have to get out of its way to avoid
// a cyclical deadlock.
lock.unlock();
simulator_progressed = (simulator_notifier_)();
simulator_progressed = std::invoke(simulator_notifier_);
lock.lock();
if (item_) {
// item may have been filled while we