+further multithreading

I split the grid into 4 quadrants which are managed by their own
thread.  Improves speed and uses more resources correctly.
This commit is contained in:
2023-08-26 00:51:17 +01:00
parent 1bc283b195
commit 026aa887f9
2 changed files with 40 additions and 11 deletions

3
lib.h
View File

@@ -12,9 +12,10 @@ typedef struct State
size_t dwidth;
size_t window_len;
int multiplier;
double multiplier;
bool thread_alive;
uint64_t payload;
} state_t;
bool load_from_file(state_t *state, const char *filepath);