Welcome! Log In Create A New Profile

Advanced
Re: File with all program that are LDraw relevant
avatarMarch 04, 2013 10:57AM
What you're describing is a "race condition".

I know that on Windows you can open a file in "exclusive mode" so that no other process can read or write the file by setting dwShareMode to 0 in the call to CreateFile(). (It allows finer granularity than that, but that is the safest setting in this context.) If all applications are required to do this any time they read or write the file, and are also required to retry opening the file for (say) one second if an open attempt fails, then the race condition goes away.
SubjectAuthorViewsPosted
File with all program that are LDraw relevant Michael Heidemann916March 03, 2013 10:49AM
Re: File with all program that are LDraw relevant Tim Gould346March 03, 2013 01:47PM
Re: File with all program that are LDraw relevant Alex Taylor321March 04, 2013 03:30AM
Re: File with all program that are LDraw relevant Michael Heidemann296March 04, 2013 09:44AM
Re: File with all program that are LDraw relevant Alex Taylor284March 04, 2013 09:53AM
Re: File with all program that are LDraw relevant Roland Melkert293March 04, 2013 10:30AM
Re: File with all program that are LDraw relevant Alex Taylor343March 04, 2013 10:43AM
Re: File with all program that are LDraw relevant Travis Cobbs352March 04, 2013 10:57AM
Re: File with all program that are LDraw relevant Travis Cobbs324March 04, 2013 11:00AM
Re: File with all program that are LDraw relevant Alex Taylor342March 04, 2013 11:23AM
Re: File with all program that are LDraw relevant Michael Heidemann345March 04, 2013 01:14PM
Re: File with all program that are LDraw relevant Alex Taylor385March 04, 2013 02:05PM
Re: File with all program that are LDraw relevant Michael Heidemann634March 05, 2013 08:22AM



Sorry, only registered users may post in this forum.

Click here to login