📄 condition.java
字号:
package uk.co.brainycreatures.jpascal.type;
/**
* represents a JPascal Condition type
*/
public class Condition {
/**
* suspends the process accessing the procedure
* where the condition variable is found
*/
public synchronized void Wait() {
try {
wait();
}
catch (Exception e) {
}
}
/**
* resumes the process accessing the procedure
* containing this variable
*/
public synchronized void Signal() {
notifyAll();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -