nn::os::ManagedThread::Detach Member Function#include <nn/os.h> void Detach();
None.
Detaches thread so no longer subject to management.
The thread that this instance is managing is detached from this instance. Once this is done, operations on this thread are no longer possible, but by calling Finalize you can deallocate the resources being used by this instance.
After you have called this function, do not call any other member function other than Finalize.
After a thread has been detached there is no appropriate way to release the stack because there is no way to reliably identify the end of the thread. To prevent this from happening, do not call this function when you are not using AutoStackManager (for example, when you have used Initialize or TryInitialize).
CONFIDENTIAL