I have to coordinate access to write on file from multiple concurrent workers.
So, i use the fake mutex class, but it doesn't work. the file is not correctly wrinting (workers interrupt to write).
cilkscreen::fake_mutex *a = cilkscreen::create_fake_mutex();
gpfgout->printSet(vars.gnprefix_len(), vars.gpprefix_itemset(), nsupport);
Is it correct to use fake mutex class to write on file ? or there is another class that allows writng on file ?
Thank you in advance,