Warning: session_start(): open(/var/lib/php/sessions/sess_635hgm49f0nkm5so1h9fc06m7f, 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 PingSource {
// returns true if it slept
settable volatile IF0 action;
ThreadPool threadPool;
*() {}
*(ThreadPool *threadPool) {}
// returns true if it slept
final bool get() {
var a = action;
ret a != null && a!;
}
void cancel {
action = new Cancelled;
}
class Cancelled is IF0 {
public Bool get() { throw new PingSourceCancelledException(PingSource.this); }
}
record noeq Encapsulated(Runnable r) is Runnable {
run {
System.out.println("Encapsulated running: " + r);
try {
pingSource_tl().set(PingSource.this);
System.out.println("Ping source set");
r.run();
System.out.println("Done running");
} finally {
System.out.println("Finally");
pingSource_tl().set(null);
}
}
}
void do(Runnable r) {
if (r == null) ret;
threadPool.acquireThreadOrQueue(new Encapsulated(r));
}
}