For now: use a single lock, which should fix all related crashes.
optimize (with less contended partial locks) if this works.
This commit is contained in:
Robin Gareus 2016-12-14 13:42:45 +01:00
parent 9e4b972286
commit 7a1ff7ce8f
6 changed files with 48 additions and 54 deletions

View file

@ -89,7 +89,6 @@ EventLoop::invalidate_request (void* data)
if (ir->event_loop) {
{
Glib::Threads::Mutex::Lock lm (ir->event_loop->slot_invalidation_mutex());
Glib::Threads::Mutex::Lock lr (ir->event_loop->request_invalidation_mutex());
for (list<BaseRequestObject*>::iterator i = ir->requests.begin(); i != ir->requests.end(); ++i) {
(*i)->valid = false;
(*i)->invalidation = 0;