wut/include/coreinit/core.h

66 lines
982 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
/**
2018-06-14 15:11:22 +02:00
* \defgroup coreinit_core Core
2016-01-07 17:02:54 +01:00
* \ingroup coreinit
*
* Provides information about each core of the system's processor.
2016-01-07 17:02:54 +01:00
* @{
*/
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
/**
* Gets the number of cores in the system. On a retail Wii U, this is always 3.
*
* \returns
* The core count of the system.
2016-01-07 17:02:54 +01:00
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetCoreCount();
2016-01-07 17:02:54 +01:00
/**
* Gets the core executing the current thread.
*
* \returns
* The ID of the current core.
2016-01-07 17:02:54 +01:00
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetCoreId();
2016-01-07 17:02:54 +01:00
/**
* Gets the main core of the system. On a retail Wii U, this is always core 1.
*
* \returns
* The ID of the main core.
2016-01-07 17:02:54 +01:00
*/
2016-01-07 13:07:13 +01:00
uint32_t
OSGetMainCoreId();
2016-01-07 17:02:54 +01:00
/**
* Determines whether the current thread is running on the main core.
* On a retail Wii U, the main core is always core 1.
*
* \returns
* \c true if the current core is the main core.
*
* \sa
* <ul><li>\link OSGetMainCoreId \endlink</li></ul>
2016-01-07 17:02:54 +01:00
*/
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
/** @} */