Reap invalidation records
This commit is contained in:
parent
fbae5f5ffd
commit
8f8d0a70d8
@ -45,6 +45,18 @@ EventLoop::EventLoop (string const& name)
|
||||
{
|
||||
}
|
||||
|
||||
EventLoop::~EventLoop ()
|
||||
{
|
||||
trash.sort();
|
||||
trash.unique();
|
||||
for (std::list<InvalidationRecord*>::iterator r = trash.begin(); r != trash.end(); ++r) {
|
||||
if (!(*r)->in_use ()) {
|
||||
delete *r;
|
||||
}
|
||||
}
|
||||
trash.clear ();
|
||||
}
|
||||
|
||||
EventLoop*
|
||||
EventLoop::get_event_loop_for_thread()
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ class LIBPBD_API EventLoop
|
||||
{
|
||||
public:
|
||||
EventLoop (std::string const&);
|
||||
virtual ~EventLoop() {}
|
||||
virtual ~EventLoop();
|
||||
|
||||
enum RequestType {
|
||||
range_guarantee = ~0
|
||||
|
Loading…
Reference in New Issue
Block a user