相关代码 |
|
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(); } }
相关资源 |
|