projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f448697
)
event pool allocation debugging
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 4 Jan 2011 16:55:52 +0000
(16:55 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 4 Jan 2011 16:55:52 +0000
(16:55 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8434
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/session_events.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_events.cc
b/libs/ardour/session_events.cc
index 2e30c4a8f1ac1dea917134e71158043a203f0d63..9c17c1cd12273dd1045815a1bd9aadb1ade4d56a 100644
(file)
--- a/
libs/ardour/session_events.cc
+++ b/
libs/ardour/session_events.cc
@@
-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 {