Warning: session_start(): open(/var/lib/php/sessions/sess_olbkcmp2l6rl3u1ps2d305qq0q, 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
// VarContext is thread-safe AFTER the first variable has been defined
// or after you call makeThreadSafe(), whichever comes first
sclass VarContext {
gettable VarContext parent;
MapSO vars;
*() {}
*(VarContext *parent) {}
O get(S name) {
if (containsKey(vars, name))
ret mapGet(vars, name);
if (parent != null)
ret parent.get(name);
null;
}
void set aka put(S name, O value) {
vars = putOrCreateSyncMap(vars, name, value);
}
void unset(S name) {
remove(vars, name);
}
void printMe {
pnl(vars);
print(+parent);
}
void makeThreadSafe {
map if null = syncHashMap();
}
// mechanism for returning from a script
settable O exitFromScript;
settable O returnValue;
bool exiting() { ping(); ret exitFromScript != null; }
}