diff options
author | Paul Gilbert | 2012-05-06 23:51:11 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-06 23:51:11 +1000 |
commit | 0b8974ec4ab37ef056ac50c098d3fe8045ec172b (patch) | |
tree | b9b5c371a532c0bd58fecf83a374206622a15ec6 /engines/tony/sched.cpp | |
parent | 156d8cdb733fe03688da9e2e9844b722681bed7f (diff) | |
download | scummvm-rg350-0b8974ec4ab37ef056ac50c098d3fe8045ec172b.tar.gz scummvm-rg350-0b8974ec4ab37ef056ac50c098d3fe8045ec172b.tar.bz2 scummvm-rg350-0b8974ec4ab37ef056ac50c098d3fe8045ec172b.zip |
TONY: Beginnings of converting dialog processes to coroutines
Diffstat (limited to 'engines/tony/sched.cpp')
-rw-r--r-- | engines/tony/sched.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/tony/sched.cpp b/engines/tony/sched.cpp index f8a7fd2538..41531bf225 100644 --- a/engines/tony/sched.cpp +++ b/engines/tony/sched.cpp @@ -299,6 +299,9 @@ void Scheduler::giveWay(PPROCESS pReSchedProc) { * @param expired Set to true if delay period expired */ void Scheduler::waitForSingleObject(CORO_PARAM, int pid, int duration, bool *expired) { + if (!pCurrent) + error("Called Scheduler::waitForSingleObject from the main process"); + CORO_BEGIN_CONTEXT; uint32 endTime; PROCESS *pProc; |