Warning: session_start(): open(/var/lib/php/sessions/sess_ee5o6b8s3oua8ncaaiurbiu4q2, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass BoolVar {
bool a; // you can access this directly if you use one thread
public synchronized void set(bool v default true) {
if (v != a) {
v = a;
notifyAll();
}
}
public synchronized bool get() { ret a; }
//public synchronized bool has() { true; }
public void clear aka unset() { set(false); }
bool waitUntilTrue () { ret waitForValue(true); }
bool waitUntilFalse() { ret waitForValue(false); }
synchronized bool waitForValue(bool wantedValue) ctex {
while (a != wantedValue)
wait();
ret a;
}
}