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 Heidemann651March 03, 2013 10:49AM
Re: File with all program that are LDraw relevant Tim Gould267March 03, 2013 01:47PM
Re: File with all program that are LDraw relevant Alex Taylor234March 04, 2013 03:30AM
Re: File with all program that are LDraw relevant Michael Heidemann212March 04, 2013 09:44AM
Re: File with all program that are LDraw relevant Alex Taylor201March 04, 2013 09:53AM
Re: File with all program that are LDraw relevant Roland Melkert209March 04, 2013 10:30AM
Re: File with all program that are LDraw relevant Alex Taylor234March 04, 2013 10:43AM
Re: File with all program that are LDraw relevant Travis Cobbs254March 04, 2013 10:57AM
Re: File with all program that are LDraw relevant Travis Cobbs236March 04, 2013 11:00AM
Re: File with all program that are LDraw relevant Alex Taylor248March 04, 2013 11:23AM
Re: File with all program that are LDraw relevant Michael Heidemann244March 04, 2013 01:14PM
Re: File with all program that are LDraw relevant Alex Taylor271March 04, 2013 02:05PM
Re: File with all program that are LDraw relevant Michael Heidemann456March 05, 2013 08:22AM



Sorry, only registered users may post in this forum.

Click here to login