mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 14:22:38 +01:00
48 lines
539 B
C
48 lines
539 B
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \defgroup coreinit_core Core Identification
|
|
* \ingroup coreinit
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
/**
|
|
* Returns the number of cores, should always be 3.
|
|
*/
|
|
uint32_t
|
|
OSGetCoreCount();
|
|
|
|
|
|
/**
|
|
* Returns the ID of the core currently executing this thread.
|
|
*/
|
|
uint32_t
|
|
OSGetCoreId();
|
|
|
|
|
|
/**
|
|
* Returns the ID of the main core.
|
|
*/
|
|
uint32_t
|
|
OSGetMainCoreId();
|
|
|
|
|
|
/**
|
|
* Returns true if the current core is the main core.
|
|
*/
|
|
BOOL
|
|
OSIsMainCore();
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|