Runtime and thread_pool mostly done

This commit is contained in:
2025-06-20 23:50:54 +01:00
parent 0be61851a4
commit 2ee6960223
7 changed files with 154 additions and 27 deletions

View File

@ -1,10 +1,12 @@
#pragma once
typedef void (*system_tick_t)(int type);
typedef void (*system_tick_t)();
void runtime_init();
void runtime_loop();
void runtime_destroy();
int runtime_callback_single(system_tick_t callback, long delay);
int runtime_callback_many(system_tick_t callback, long period, long phase);
void runtime_request_stop();
void runtime_callback_single(system_tick_t callback, long delay);
void runtime_callback_many(system_tick_t callback, long period, long phase);

4
include/systems/status.h Normal file
View File

@ -0,0 +1,4 @@
#pragma once
extern long status_last_tick_usec;
extern long status_avg_tick_usec;

View File

@ -1,5 +1,7 @@
#pragma once
#include <stddef.h>
typedef struct thread_pool_t thread_pool_t;
thread_pool_t *thread_pool_create(size_t thread_count);