S
Su
Hello,
What happens if either the class name nor the instance variable is specified
while calling ThreadStart(), ie, just with the method name as below :
MyClass{
public void Connect()
{
Thread connThread = new Thread(new ThreadStart(connThreadRoutine));
}
private void connThreadRoutine()
{
//access few non-static variables of the current object, including
synchronization objects
//and database connection
}
}
In the above case does the control defaults to the "this" pointer's instance
method, so that the correct non static variables are updated, or can this be
ambigious if there are multiple instances of MyClass?
Thank you
Su
What happens if either the class name nor the instance variable is specified
while calling ThreadStart(), ie, just with the method name as below :
MyClass{
public void Connect()
{
Thread connThread = new Thread(new ThreadStart(connThreadRoutine));
}
private void connThreadRoutine()
{
//access few non-static variables of the current object, including
synchronization objects
//and database connection
}
}
In the above case does the control defaults to the "this" pointer's instance
method, so that the correct non static variables are updated, or can this be
ambigious if there are multiple instances of MyClass?
Thank you
Su