disk drives and resources

This commit is contained in:
2025-07-25 18:10:16 +02:00
parent 3f873f5165
commit 0c3a3f0d75
11 changed files with 327 additions and 4 deletions

View File

@@ -8,6 +8,12 @@ typedef struct nn_signal {
nn_value values[NN_MAX_SIGNAL_VALS];
} nn_signal;
typedef struct nn_resource_t {
size_t id;
void *ptr;
nn_resourceTable_t *table;
} nn_resource_t;
typedef struct nn_computer {
char state;
nn_bool_t allocatedError;
@@ -21,7 +27,7 @@ typedef struct nn_computer {
nn_size_t argc;
nn_value rets[NN_MAX_RETS];
nn_size_t retc;
nn_architecture *arch;
nn_architecture *arch; // btw
void *archState;
nn_architecture *nextArch;
nn_architecture *supportedArch[NN_MAX_ARCHITECTURES];
@@ -42,6 +48,8 @@ typedef struct nn_computer {
double roomTemperature;
double callCost;
double callBudget;
nn_size_t rid;
nn_resource_t resources[NN_MAX_CONCURRENT_RESOURCES];
} nn_computer;
#endif