不能,wait后你得给它signal才能再执行吧
解决方案 »
- 为什么我的模态对话框和非模态对化框初始化不了
- 小弟,最近想做过网络硬盘,望高手指点,指点
- 求:JPEG2000和视频压缩解压的代码
- CSDN的高手在哪里?
- 标准SDI应用程序,加入启动画面后,初始化函数中的AfxMessageBox("")与启动画面同时关闭?为什么?
- 求清晰的《vc技术内幕(第四版)》中文版
- SetWindowLong (hwnd, 0, 1 ^ GetWindowLong (hwnd, 0)) ;??
- 如何模拟鼠标在网页上点击单选或多选按钮?
- 如何制作像 腾讯 浏览器一样标签式窗口?急急急!!!
- 怎样让一个文件夹调用存放在自身中的folder.htt文件?
- CMFCListCtrl 头右键消息处理问题
- MFC与MATLAB通过DLL混合编程,移植性问题
Class Overview | Class Members | This Package | All Packages Syntax 1
public final native void wait( long timeout ) throws InterruptedException
Parameters
timeout
the maximum time to wait in milliseconds.
Description
Waits to be notified by another thread of a change in this object.
The current thread must own this object's monitor. The thread releases ownership of this monitor and waits until either of the following two conditions has occurred: Another thread notifies threads waiting on this object's monitor to wake up either through a call to the notify method or the notifyAll method.
The timeout period, specified by the timeout argument in milliseconds, has elapsed.
The thread then waits until it can re-obtain ownership of the monitor and resumes execution. This method should only be called by a thread that is the owner of this object's monitor. See the notify method for a description of the ways in which a thread can become the owner of a monitor.
Exceptions
IllegalArgumentException if the value of timeout is negative.
Exceptions
IllegalMonitorStateException if the current thread is not the owner of the object's monitor.
Exceptions
InterruptedException if another thread has interrupted this thread.
See Also
notify, notifyAll