diff options
author | Jordi Vilalta Prat | 2010-10-12 02:18:11 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2010-10-12 02:18:11 +0000 |
commit | 8388e0dfea4ae0d80e51368acd12685c740c5bb5 (patch) | |
tree | f960376a145a830cd77b08264c1412f71ec02f7e /backends/timer | |
parent | 43161858ac14bae4ac6dea114d8b3e7a8c1b293b (diff) | |
download | scummvm-rg350-8388e0dfea4ae0d80e51368acd12685c740c5bb5.tar.gz scummvm-rg350-8388e0dfea4ae0d80e51368acd12685c740c5bb5.tar.bz2 scummvm-rg350-8388e0dfea4ae0d80e51368acd12685c740c5bb5.zip |
JANITORAL: Clean trailing whitespaces.
svn-id: r53160
Diffstat (limited to 'backends/timer')
-rw-r--r-- | backends/timer/psp/timer.cpp | 16 | ||||
-rw-r--r-- | backends/timer/psp/timer.h | 6 |
2 files changed, 11 insertions, 11 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"); diff --git a/backends/timer/psp/timer.h b/backends/timer/psp/timer.h index ec31addb72..01b1ca636e 100644 --- a/backends/timer/psp/timer.h +++ b/backends/timer/psp/timer.h @@ -24,8 +24,8 @@ */ #ifndef PSP_TIMER_H -#define PSP_TIMER_H - +#define PSP_TIMER_H + class PspTimer { public: typedef void (* CallbackFunc)(void); @@ -44,4 +44,4 @@ private: bool _init; }; -#endif +#endif // PSP_TIMER_H |