mirror of
https://github.com/thepigeongenerator/cpusetcores.git
synced 2025-12-18 14:35:45 +01:00
11 lines
310 B
C
11 lines
310 B
C
#pragma once
|
|
#include "util/intdef.h"
|
|
|
|
/* gets the current state of a CPU thread,
|
|
* returns a boolean value (`1` for enabled, `0` for disabled) */
|
|
int cpu_getenabled(uint id);
|
|
|
|
/* sets the current state of a CPU thread.
|
|
* returns `0` upon success, `1` upon failure */
|
|
int cpu_setenabled(uint id, int state);
|