Check if resourse is locked
- From: bg_ie@xxxxxxxxx
- Date: 18 Jan 2007 11:03:51 -0800
Hi,
I have the following in my com object-
static public uint Time
{
get
{
lock (Channel.staticLockObject)
{
return Channel.time;
}
}
}
Sometimes though I am getting back incorrect values when using Time.
How can I check if Channel.staticLockObject is already locked so that I
can print a debug message?
Thanks for your help,
Barry.
.
- Follow-Ups:
- Re: Check if resourse is locked
- From: Michael Nemtsev
- Re: Check if resourse is locked
- Prev by Date: Re: importing csv to datagrid, adding column data
- Next by Date: Re: Check if resourse is locked
- Previous by thread: Check if resourse is locked
- Next by thread: Re: Check if resourse is locked
- Index(es):
Relevant Pages
|