29 lines
441 B
C
29 lines
441 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
uint64_t loop;
|
|
const char *test;
|
|
uint64_t mismatches;
|
|
uint64_t burnin_iters;
|
|
int error;
|
|
int done;
|
|
uint64_t total_mb;
|
|
int threads;
|
|
float progress;
|
|
} mt_cpu_status_t;
|
|
|
|
void mt_cpu_start(int mode);
|
|
void mt_cpu_stop(void);
|
|
int mt_cpu_running(void);
|
|
void mt_cpu_get(mt_cpu_status_t *out);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|