wut/include/coreinit/core.h

48 lines
539 B
C
Raw Normal View History

2016-01-07 13:07:13 +01:00
#pragma once
#include <wut.h>
2016-01-07 17:02:54 +01:00
/**
* \defgroup coreinit_core Core Identification
* \ingroup coreinit
* @{
*/
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2016-01-07 13:07:13 +01:00
2016-01-07 17:02:54 +01:00
/**
* Returns the number of cores, should always be 3.
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetCoreCount();
2016-01-07 17:02:54 +01:00
/**
* Returns the ID of the core currently executing this thread.
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetCoreId();
2016-01-07 17:02:54 +01:00
/**
* Returns the ID of the main core.
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetMainCoreId();
2016-01-07 17:02:54 +01:00
/**
* Returns true if the current core is the main core.
*/
2016-01-07 13:07:13 +01:00
BOOL
OSIsMainCore();
2016-01-07 17:02:54 +01:00
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
}
#endif
2016-01-07 17:02:54 +01:00
/** @} */