aboutsummaryrefslogtreecommitdiff
path: root/include/kpl/code.h
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-09-23 12:32:31 -0400
committernodist <kevin.comas.git@gmail.com>2026-09-23 12:32:31 -0400
commit07af98f3a5a54a8736109ed031d3177508943299 (patch)
tree032427fabed19c59349c51ce842517e6895a33b8 /include/kpl/code.h
parentd93466b950ff760a1dd7fd0c2d8ae72c8f1ee0b5 (diff)
add task queues
Diffstat (limited to 'include/kpl/code.h')
-rw-r--r--include/kpl/code.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/kpl/code.h b/include/kpl/code.h
new file mode 100644
index 0000000..fb44f86
--- /dev/null
+++ b/include/kpl/code.h
@@ -0,0 +1,25 @@
+
+#pragma once
+
+// Queues and trees for code life cycle
+
+#include "kpl/queue.h"
+
+typedef enum : int8_t {
+ KPL_CONFIG_CODE_QUEUE_POW2_MIN = 4,
+ KPL_CONFIG_CODE_QUEUE_POW2_DEFAULT = 6,
+ KPL_CONFIG_CODE_QUEUE_POW2_MAX = 8,
+} kpl_config_code_queue_pow;
+
+typedef struct {
+ int8_t queue_pow2;
+} kpl_config_code;
+
+// TODO namespace tree
+
+// TODO module tree
+
+typedef struct {
+ kpl_config_code *config_code;
+ kpl_ring_queue code_queue;
+} kpl_code;