The Lock Statement in C#....
Need to remember this From MSDN ... lock(x); is precisely equivalent to in C# ... System.Threading.Monitor.Enter(x); try{
//...
}catch {//...
} finally{System.Threading.Exit(x);
} and in C++/ System::Thread::Monitor::Enter(x); try{ } __finally{System::Threading::Monitor::Exit(x);
}
0 Comments:
Post a Comment
<< Home