Skip to content

Commit

Permalink
amend prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Dec 13, 2016
1 parent fa07233 commit 112fba1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/pbd/pbd/abstract_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,10 @@ AbstractUI<RequestObject>::handle_ui_requests ()

if (req->invalidation) {
DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("%1/%2 remove request from its invalidation list\n", event_loop_name(), pthread_name()));
assert (req->invalidation->event_loop && req->invalidation->event_loop != this);
Glib::Threads::Mutex::Lock lm (req->invalidation->event_loop->request_invalidation_mutex());
Glib::Threads::Mutex::Lock lm (req->invalidation->event_loop->request_invalidation_mutex(), Glib::Threads::NOT_LOCK);
if (req->invalidation->event_loop && req->invalidation->event_loop != this) {
lm.acquire ();
}

/* after this call, if the object referenced by the
* invalidation record is deleted, it will no longer
Expand Down

0 comments on commit 112fba1

Please sign in to comment.