GetCurrentId

nn::os::Thread::GetCurrentId Member Function

Syntax

#include <nn/os.h>

static bit32 GetCurrentId();

Parameters

None.

Return Values

Returns the thread ID of the current thread.

Description

Gets the thread ID of the current thread.

Because the execution load of this function is rather large, frequent calls may lead to lowered performance.

A low-cost thread ID check can be implmented using functions like nn::os::ThreadLocalStorage.

Revision History

2011/08/02
Added information about the execution load.
2010/01/07
Initial version.

CONFIDENTIAL