Timeline for Mutex Usage question
Current License: CC BY-SA 2.5
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 21, 2011 at 2:33 | comment | added | dthorpe | The Win32 API call will fail with an error code. Stream classes or .NET wrappers will probably throw an exception. If you want a thread to wait until the file is available again, you'll probably need to set up a sleep/polling loop to try to open the file, if fail sleep for a little while, then loop and try again. | |
| Feb 20, 2011 at 21:24 | vote | accept | eran otzap | ||
| Feb 20, 2011 at 21:15 | comment | added | eran otzap | thanks, yeah i thought of using named mutexes but the first option hadn't occurd to me , with exclusive read mode block until the file could be opened or does it just throw an exception ? | |
| Feb 20, 2011 at 20:01 | history | answered | dthorpe | CC BY-SA 2.5 |