48 lines
539 B
C
Raw Normal View History

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