java实现的一个pascal编译器

源代码在线查看: condition.java

软件大小: 837 K
上传用户: gdmichael
关键词: pascal java 编译器
下载地址: 免注册下载 普通下载 VIP

相关代码

				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();
				  }
				}
				
							

相关资源