I have a class that ahs several methods. It pulls from a queue so it
has to be singleton at that point. The question I have is: does the
lock{} statement work across methods? If I have A(), B(), and C() and
I do this:
A()
{
lock{
SomeWork();
}
}
B()
{
lock{
Some();
Other();
Work();
}
}
Will A() be locked if a thread is currently in B()? Thanks for the
help.
Tom P.