nn::os::ManagedThread::GetCurrentThread Member Function

Syntax

#include <nn/os.h>

static ManagedThread * GetCurrentThread();

Parameters

None.

Return Values

Returns the pointer to the ManagedThread corresponding to the current thread. When the current thread is not a thread created by ManagedThread, the function returns NULL.

Description

Gets the pointer to the ManagedThread corresponding to the current thread.

This function gets the pointer to the ManagedThread that created the current thread. Note that the obtained pointer might be invalid, having already been processed by Detach and Finalize.

When the current thread was not created by ManagedThread (for example, if it is a thread that was created by Thread), then this function returns NULL.

Revision History

2012/04/13
Initial version.

CONFIDENTIAL