Home All Groups Group Topic Archive Search About
Author
3 Aug 2006 9:01 PM
Roy
Here is a description on the time-out for ReaderWriterLock
-1  Infinite.
0   No time-out.
>0  The number of milliseconds to wait.

What is the difference between "Infinite" and "No time-out"? Are they the
same?

Author
3 Aug 2006 9:16 PM
Jon Skeet [C# MVP]
Roy <R**@discussions.microsoft.com> wrote:
> Here is a description on the time-out for ReaderWriterLock
> -1  Infinite.
> 0   No time-out.
> >0  The number of milliseconds to wait.
>
> What is the difference between "Infinite" and "No time-out"? Are they the
> same?

I believe it actually means "don't wait - if you can't acquire whatever
you're after immediately, just bail out". I agree it's poorly worded
though.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

AddThis Social Bookmark Button