hw: call lock_for_destruction in platform_pd

Issue #1607
This commit is contained in:
Alexander Boettcher 2015-08-25 08:59:33 +02:00 committed by Norman Feske
parent 10aba44982
commit 9cd85ddcf7
2 changed files with 11 additions and 0 deletions

View File

@ -180,6 +180,11 @@ class Genode::Platform_pd : public Hw::Address_space,
*/
Platform_pd(Allocator * md_alloc, char const *label);
/**
* Destructor
*/
~Platform_pd();
/**
* Bind thread 't' to protection domain
*

View File

@ -167,6 +167,12 @@ Platform_pd::Platform_pd(Allocator * md_alloc, char const *label)
}
}
Platform_pd::~Platform_pd()
{
/* invalidate weak pointers to this object */
Address_space::lock_for_destruction();
}
/*************************************
** Core_platform_pd implementation **