diff options
author | Max Horn | 2008-07-24 08:59:17 +0000 |
---|---|---|
committer | Max Horn | 2008-07-24 08:59:17 +0000 |
commit | 69dac1d4f22f9a63a5a9030d4405ba071e5e8b89 (patch) | |
tree | 82f7bd95c3a03b3d4e363e26eecdc36fe3e8b600 /engines/tinsel/token.cpp | |
parent | 627e0c277426b02153b79c82616ae7f351ad5bc3 (diff) | |
download | scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.gz scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.tar.bz2 scummvm-rg350-69dac1d4f22f9a63a5a9030d4405ba071e5e8b89.zip |
Moved scheduler / process managment code into a new class Scheduler
svn-id: r33259
Diffstat (limited to 'engines/tinsel/token.cpp')
-rw-r--r-- | engines/tinsel/token.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tinsel/token.cpp b/engines/tinsel/token.cpp index e50290c3f0..0bdac0d6eb 100644 --- a/engines/tinsel/token.cpp +++ b/engines/tinsel/token.cpp @@ -53,7 +53,7 @@ static void TerminateProcess(PROCESS *tProc) { } // Kill the process - ProcessKill(tProc); + g_scheduler->killProcess(tProc); } /** @@ -63,7 +63,7 @@ void GetControlToken() { const int which = TOKEN_CONTROL; if (tokens[which].proc == NULL) { - tokens[which].proc = CurrentProcess(); + tokens[which].proc = g_scheduler->getCurrentProcess(); } } @@ -88,11 +88,11 @@ void GetToken(int which) { assert(TOKEN_LEAD <= which && which < NUMTOKENS); if (tokens[which].proc != NULL) { - assert(tokens[which].proc != CurrentProcess()); + assert(tokens[which].proc != g_scheduler->getCurrentProcess()); TerminateProcess(tokens[which].proc); } - tokens[which].proc = CurrentProcess(); + tokens[which].proc = g_scheduler->getCurrentProcess(); } /** @@ -102,7 +102,7 @@ void GetToken(int which) { void FreeToken(int which) { assert(TOKEN_LEAD <= which && which < NUMTOKENS); - assert(tokens[which].proc == CurrentProcess()); // we'd have been killed if some other proc had taken this token + assert(tokens[which].proc == g_scheduler->getCurrentProcess()); // we'd have been killed if some other proc had taken this token tokens[which].proc = NULL; } |