123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #pragma once
- #define _GNU_SOURCE
- #include <sched.h>
- #include <stdlib.h>
- #define IS_CPU_PARK 0
- #define IS_CPU_PIN 1
- struct GameModeCPUInfo {
- size_t num_cpu;
- int park_or_pin;
- cpu_set_t *online;
- cpu_set_t *to_keep;
- };
- char *parse_cpulist(char *cpulist, long *from, long *to);
|