hai plz help me
Iam locking an object in a function fun1()
and iam using that object in another function fun2() and unlockin it
will the lock still holds good in fun2()
the object is globally declared
consider the following scenario
object obj;
void fun2()
{
fun1();
obj.display();
unlock();
}
obj& fun1()
{
lock();
return obj;
}
plz help me its urgent
Thanks
Vadan