Hello everyone,
Two questions about exceptions from ReaderWriterLock class,
1. If I use parameter -1 (no timeout value) to acquire either read or write lock, is there any possibility there will be any exceptions?
2. When we release the lock, if the current thread is the owner, is there any possibility to throw any exceptions?
thanks in advance,
George
Chongo84 pointsPosted Apr 17, 2008, 4:43 AM EDT
George GeorgeRank #2,261 · 618 pointsPosted Apr 17, 2008, 5:11 AM EDT
Thanks,
I am new to C#. I want to confirm with you that, there is only ApplicationException could be thrown from all functions from ReaderWriterLock class, and the only situation is "millisecondsTimeout expires before the lock request is granted"? Right?
regards,
George
Chongo84 pointsPosted Apr 17, 2008, 7:38 PM EDT
George GeorgeRank #2,261 · 618 pointsPosted Apr 17, 2008, 9:23 PM EDT
Cool Daniel,
Question answered.
regards,
George