diff options
author | Yotam Barnoy | 2010-10-31 11:08:43 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-10-31 11:08:43 +0000 |
commit | 94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1 (patch) | |
tree | 3df2a4ae7967c56d464729669fc06ce4e93dff36 /backends/timer/psp/timer.cpp | |
parent | 8df4278ba8cfbf71228e1927f9db635a9a30a57f (diff) | |
parent | dca3c8d8bfc6c4db38cf8e8291818dd472041d4e (diff) | |
download | scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.tar.gz scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.tar.bz2 scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.zip |
Updated with latest from trunk
svn-id: r53976
Diffstat (limited to 'backends/timer/psp/timer.cpp')
-rw-r--r-- | backends/timer/psp/timer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/backends/timer/psp/timer.cpp b/backends/timer/psp/timer.cpp index 55b63ba4fd..2b6bebe37c 100644 --- a/backends/timer/psp/timer.cpp +++ b/backends/timer/psp/timer.cpp @@ -23,7 +23,7 @@ * */ -#if defined (__PSP__) +#if defined (__PSP__) #include <pspthreadman.h> #include "common/scummsys.h" @@ -38,7 +38,7 @@ bool PspTimer::start() { DEBUG_ENTER_FUNC(); - + if (!_interval || !_callback) return false; @@ -48,31 +48,31 @@ bool PspTimer::start() { PSP_ERROR("failed to create timer thread. Error code %d\n", _threadId); return false; } - + PspTimer *_this = this; // trick to get into context when the thread starts _init = true; - + if (sceKernelStartThread(_threadId, sizeof(uint32 *), &_this) < 0) { PSP_ERROR("failed to start thread %d\n", _threadId); return false; } - + PSP_DEBUG_PRINT("created timer thread[%x]\n", _threadId); - + return true; } int PspTimer::thread(SceSize, void *__this) { DEBUG_ENTER_FUNC(); PspTimer *_this = *(PspTimer **)__this; // get our this for the context - + _this->timerThread(); return 0; }; void PspTimer::timerThread() { DEBUG_ENTER_FUNC(); - + while (_init) { sceKernelDelayThread(_interval); PSP_DEBUG_PRINT("calling callback!\n"); |