13
0

event pool allocation debugging

git-svn-id: svn://localhost/ardour2/branches/3.0@8434 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-01-04 16:55:52 +00:00
parent f448697039
commit 9541129651

View File

@ -60,6 +60,7 @@ SessionEvent::operator new (size_t)
{
CrossThreadPool* p = pool->per_thread_pool ();
SessionEvent* ev = static_cast<SessionEvent*> (p->alloc ());
cerr << "Allocating SessionEvent from " << p->name() << " ev @ " << ev << endl;
ev->own_pool = p;
return ev;
}
@ -70,6 +71,7 @@ SessionEvent::operator delete (void *ptr, size_t /*size*/)
Pool* p = pool->per_thread_pool ();
SessionEvent* ev = static_cast<SessionEvent*> (ptr);
cerr << "Deleting SessionEvent @ " << ev << " thread pool = " << p->name() << " ev pool = " << ev->own_pool->name() << endl;
if (p == ev->own_pool) {
p->release (ptr);
} else {