G
Guest
I am new to C#,
what's the difference between lock() and ManualResetEvent.reset()?
for example:
a)
lock(this){
anything....
}
b)
ManualResetEvent _asyncEvent = new ManualResetEvent();
_asyncEvent.reset();
anything.....
_asyncEvent.set();
What's the difference between a) and b)?
Thanks so much!
what's the difference between lock() and ManualResetEvent.reset()?
for example:
a)
lock(this){
anything....
}
b)
ManualResetEvent _asyncEvent = new ManualResetEvent();
_asyncEvent.reset();
anything.....
_asyncEvent.set();
What's the difference between a) and b)?
Thanks so much!