nn::os::ManagedThread::FindById Member Function

Syntax

#include <nn/os.h>

static ManagedThread * FindById(
     bit32 id
);

Parameters

Name Description
in id The ID to use as the thread search key.

Return Values

Gets the pointer to the ManagedThread corresponding to id. Returns NULL if not found.

Description

Gets the pointer to the ManagedThread from the thread ID.

Searches among ManagedThread instances that have been initialized but not finalized to find the one that matches the specified ID.

This function is implemented using Enumerate, so it complies with Enumerate in terms of thread safety and internal function blocks. For details, see the Enumerate function.

Revision History

2012/04/13
Initial version.

CONFIDENTIAL