不太明白,如果仅仅想知道ManualResetEvent.WaitOne方法,查查msdn,如下就是
[C#]
public virtual bool WaitOne(
TimeSpan timeout,
bool exitContext
);Parameters
timeout
The number of milliseconds to wait for the thread to receive a signal.
exitContext
true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false.
Return Value
true if the current instance receives a signal; otherwise, false.Res
The caller of this method blocks indefinitely until the current instance receives a signal. Use this method to block until a WaitHandle receives a signal from another thread, such as is generated when an asynchronous operation completes. For more information, see the System.IAsyncResult interface.Override this method to customize the behavior of derived classes.
[C#]
public virtual bool WaitOne(
TimeSpan timeout,
bool exitContext
);Parameters
timeout
The number of milliseconds to wait for the thread to receive a signal.
exitContext
true to exit the synchronization domain for the context before the wait (if in a synchronized context), and reacquire it; otherwise, false.
Return Value
true if the current instance receives a signal; otherwise, false.Res
The caller of this method blocks indefinitely until the current instance receives a signal. Use this method to block until a WaitHandle receives a signal from another thread, such as is generated when an asynchronous operation completes. For more information, see the System.IAsyncResult interface.Override this method to customize the behavior of derived classes.
解决方案 »
- wpf使用多线程后界面一样无响应
- 求一个 生成 SOAP 字符串的方法, 超级感谢..
- C#Winform连接ORACLE数据库(急)
- 关于toolStrip动态生成的button的问题
- 请教:简单的算法问题。。。
- 请 ps1234 老大,指导一下,谢谢!
- 连接数据库
- visio注释生成sql server数据库描述(看帮助和在网上找不到的问题急!!!)
- 各位前辈,,用C#开发的软件能在哪几种操作系统上运行呀??
- c#调用vc做的Dll,使用DllImport的方法,失败了 :(
- 有谁使用过Word.Application,Word.Document,Word.Application.Documents....
- TheAres班门斧凶请进,上次用sharpziplib压缩的问题!!
如果为 true,则将初始状态设置为终止;如果为 false,则将初始状态设置为非终止。