Open shaoqx opened 2 years ago
for temp files, we can just create a different if found any is created since they gonna be deleted anyway
but for those meant to be shared ones (like ligand parameter files), it is important to make them thread-safe. Need to check if there's anyway to see from the OS if other process is writing this file. Or use a flag file during writing.
the unfinished problem in this commit 8e8bf81 When running multiple mutations in parallel, need to apply thread lock when shared files are writing and wait until its finish.