mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 22:47:12 +00:00
When destroying a thread, which was not bound to a protection domain via kernel primitives beforehand, it is critical to change the pager and exregs the thread in the destruction process. Therefore, this commit introduces two thread states: DEAD and RUNNING. On the basis of the thread state, we can decide whether to reset the thread before destroying it, or not.