Move checkpoint saving to main thread

Checkpoints will now be saved every 5 minutes and when the program
ends.
This commit is contained in:
scribblemaniac
2021-11-05 19:26:21 -06:00
parent c9396de8b2
commit 3706518f76
5 changed files with 67 additions and 62 deletions

View File

@@ -33,8 +33,6 @@ VEC_STRUCT(statsvec,struct statstruct);
#ifdef PASSPHRASE
extern pthread_mutex_t determseed_mutex;
extern u8 determseed[SEED_LEN];
extern u8 checkpoint[SEED_LEN];
extern const char *checkpointfile;
#endif
extern void worker_init(void);