Re: c# lock
- From: "Nalaka" <nalaka12@xxxxxxxxxxxxx>
- Date: Tue, 12 Jun 2007 09:49:29 -0700
aaah sorry Nicholas,
I am using outLook express to look at this thread... it does not show my
yesterday's post.
I thought my yestreday's post did not go through... thats why I posted
again.
sorry again
Nalaka
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:eFVNECRrHHA.500@xxxxxxxxxxxxxxxxxxxxxxx
What was wrong with the previous answers?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/3b12fd804074b36d/3928a655441147c5?lnk=st&q=Nicholas+Paldino+c%23+lock&rnum=2#3928a655441147c5
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Nalaka" <nalaka12@xxxxxxxxxxxxx> wrote in message
news:ucPrZ7QrHHA.3248@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I need to code so that only one thread can do a piece of work... other
threads need not do the work if a thread is alredy doing the work.
something like this.....
if ( isAlreadyLocked )
{ return anotherThreadIsAlredyAtWork }
lock ( myObject )
{
// do the work
}
Any help is appreciated
Thanks
Nalaka
.
- References:
- c# lock
- From: Nalaka
- Re: c# lock
- From: Nicholas Paldino [.NET/C# MVP]
- c# lock
- Prev by Date: Re: Class Instances
- Next by Date: Re: How to use List<T> with 2 dimensions (with the 2nd one variable)?
- Previous by thread: Re: c# lock
- Next by thread: User objects in application settings?
- Index(es):
Relevant Pages
|