Browse Source

safeguard not needed with a semaphore

synchronous Release_2.1.0-RC5
Volker Birk 5 years ago
parent
commit
653cbf74b5
  1. 4
      callback_dispatcher.cc

4
callback_dispatcher.cc

@ -29,9 +29,7 @@ namespace pEp {
throw std::invalid_argument("messageToSend must be set");
targets.push_back({messageToSend, notifyHandshake, on_startup, shutdown});
if (!Adapter::on_sync_thread())
semaphore.go();
semaphore.go();
}
void CallbackDispatcher::remove(::messageToSend_t messageToSend)

Loading…
Cancel
Save