static void memoryLoaded() { sSemaphore.post(); }
void stopUserThread() { run = false; sPause.post(); }
static void errorCallback() { //TODO: set error state, so thread knows not to continue? sSemaphore.post(); setErrorCallback(NULL); }
void resumeUserInput() { sPause.post(); }