48 lines
524 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
/**
2018-06-14 14:11:22 +01:00
* \defgroup coreinit_core Core
2016-01-07 16:02:54 +00:00
* \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
/** @} */