nn::os::ManagedThread::Enumerate Member Function#include <nn/os.h>
static void Enumerate(
EnumerateCallback * p
);
| Name | Description | |
|---|---|---|
| in | p | The pointer to the callback object. |
Enumerates the initialized ManagedThread instances.
The EnumerateCallback::operator() function specified by p is called for every instance of ManagedThread that has been initialized but not finalized. The series of callbacks called internally by Enumerate is performed after a lock has been obtained, so during that process no calls to Initialize and Finalize can be made by other threads.
This function is thread-safe. Note, however, that thread safety is guaranteed only inside the function. It is possible for ManagedThread instances enumerated internally by this function to be finalized immediately after processing has returned from this function.
While this function is being called, calls by other threads to Initialize, Finalize, FindByStackAddress, FindById, and Enumerate are blocked.
CONFIDENTIAL