Quick Mutex Question
From: dln (dnadon_nospm_at_hotmail.com)
Date: 04/13/04
- Next message: Frans Bouma [C# MVP]: "Re: Serialize Person Object"
- Previous message: J.Marsch: "Re: Getting Rid of the Nulls"
- Next in thread: Jon Skeet [C# MVP]: "Re: Quick Mutex Question"
- Reply: Jon Skeet [C# MVP]: "Re: Quick Mutex Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 11:09:55 -0500
If I were to use the following call:
Mutex my_mutex = new Mutex();
bool got_lock = my_mutex.WaitOne(500, false);
and then got_lock returns false, do I need to call "my_mutex.ReleaseMutex()"
on it? So put another way, should I always call ReleaseMutex, regardless of
whether or not I got the lock?
Thanks.
- Next message: Frans Bouma [C# MVP]: "Re: Serialize Person Object"
- Previous message: J.Marsch: "Re: Getting Rid of the Nulls"
- Next in thread: Jon Skeet [C# MVP]: "Re: Quick Mutex Question"
- Reply: Jon Skeet [C# MVP]: "Re: Quick Mutex Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|