X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_events.cc;h=421c81d42cac7828793f8e7068a1074570fa9f80;hb=bc3e1a212250a67e53e86c972287a275834a967a;hp=61a6ca3564fe9a29d612103cfa8701c2cfe60e9c;hpb=2ad819c956d8d77ddfd65cdf35c91deef9cee74d;p=ardour.git diff --git a/libs/ardour/session_events.cc b/libs/ardour/session_events.cc index 61a6ca3564..421c81d42c 100644 --- a/libs/ardour/session_events.cc +++ b/libs/ardour/session_events.cc @@ -57,7 +57,7 @@ SessionEvent::create_per_thread_pool (const std::string& name, uint32_t nitems) } void * -SessionEvent::operator new (size_t) +SessionEvent::operator new (size_t) { CrossThreadPool* p = pool->per_thread_pool (); SessionEvent* ev = static_cast (p->alloc ()); @@ -70,24 +70,24 @@ SessionEvent::operator new (size_t) ev->own_pool = p; return ev; } - -void -SessionEvent::operator delete (void *ptr, size_t /*size*/) + +void +SessionEvent::operator delete (void *ptr, size_t /*size*/) { Pool* p = pool->per_thread_pool (); SessionEvent* ev = static_cast (ptr); - DEBUG_TRACE (DEBUG::SessionEvents, string_compose ( - "%1 Deleting SessionEvent @ %2 ev thread pool = %3 ev pool = %4\n", - pthread_self(), ev, p->name(), ev->own_pool->name() - )); + DEBUG_TRACE (DEBUG::SessionEvents, string_compose ( + "%1 Deleting SessionEvent @ %2 ev thread pool = %3 ev pool = %4\n", + pthread_self(), ev, p->name(), ev->own_pool->name() + )); #ifndef NDEBUG if (DEBUG::SessionEvents & PBD::debug_bits) { stacktrace (cerr, 40); } #endif - + if (p == ev->own_pool) { p->release (ptr); } else { @@ -133,7 +133,7 @@ SessionEventManager::dump_events () const } cerr << "Next event: "; - if ((Events::const_iterator) next_event == events.end()) { + if ((Events::const_iterator) next_event == events.end()) { cerr << "none" << endl; } else { cerr << "at " << (*next_event)->action_frame << ' '