so with using lite-c functions for database in parallel, would I want to set up a global flag for data_locked, while the 2nd, nth threads are working, then get them to set it to unlocked when the database data is placed back into variables?

Is this the simplest sort of setup so that I can avoid crashes / mishmashed data?

(I'd think I would want multiple threads for database access, AI, network chat (reliable checks) and the like.)

Don
have a great day