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 Heidemann538March 03, 2013 10:49AM
Re: File with all program that are LDraw relevant Tim Gould231March 03, 2013 01:47PM
Re: File with all program that are LDraw relevant Alex Taylor196March 04, 2013 03:30AM
Re: File with all program that are LDraw relevant Michael Heidemann168March 04, 2013 09:44AM
Re: File with all program that are LDraw relevant Alex Taylor167March 04, 2013 09:53AM
Re: File with all program that are LDraw relevant Roland Melkert170March 04, 2013 10:30AM
Re: File with all program that are LDraw relevant Alex Taylor193March 04, 2013 10:43AM
Re: File with all program that are LDraw relevant Travis Cobbs202March 04, 2013 10:57AM
Re: File with all program that are LDraw relevant Travis Cobbs191March 04, 2013 11:00AM
Re: File with all program that are LDraw relevant Alex Taylor204March 04, 2013 11:23AM
Re: File with all program that are LDraw relevant Michael Heidemann206March 04, 2013 01:14PM
Re: File with all program that are LDraw relevant Alex Taylor231March 04, 2013 02:05PM
Re: File with all program that are LDraw relevant Michael Heidemann375March 05, 2013 08:22AM



Sorry, only registered users may post in this forum.

Click here to login