diff options
author | Ruediger Hanke | 2003-05-04 13:00:43 +0000 |
---|---|---|
committer | Ruediger Hanke | 2003-05-04 13:00:43 +0000 |
commit | 34e5eaadd01572693a5fa49c755167ac9919007b (patch) | |
tree | 2c0d290cfd4152f39bbb565440be9a893d969a18 /backends/morphos/morphos.h | |
parent | a8c180ddf8d184d5896a774708e205efaa6b7be0 (diff) | |
download | scummvm-rg350-34e5eaadd01572693a5fa49c755167ac9919007b.tar.gz scummvm-rg350-34e5eaadd01572693a5fa49c755167ac9919007b.tar.bz2 scummvm-rg350-34e5eaadd01572693a5fa49c755167ac9919007b.zip |
*** empty log message ***
svn-id: r7315
Diffstat (limited to 'backends/morphos/morphos.h')
-rw-r--r-- | backends/morphos/morphos.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backends/morphos/morphos.h b/backends/morphos/morphos.h index 8730149bcc..71985b263e 100644 --- a/backends/morphos/morphos.h +++ b/backends/morphos/morphos.h @@ -29,6 +29,7 @@ #include <intuition/intuition.h> #include <intuition/screens.h> #include <libraries/cdda.h> +#include <proto/exec.h> #include "morphos_scaler.h" @@ -165,6 +166,7 @@ class OSystem_MorphOS : public OSystem Region *UpdateRegion; Region *NewUpdateRegion; ULONG UpdateRects; + SignalSemaphore CritSec; /* Overlay-related attributes */ APTR OvlBitMap; @@ -205,6 +207,19 @@ class OSystem_MorphOS : public OSystem int GameID; }; +class AutoLock +{ + public: + AutoLock(SignalSemaphore* s) : sem(s) { ObtainSemaphore(sem); } + ~AutoLock() { ReleaseSemaphore(sem); } + + private: + SignalSemaphore* sem; +}; + +#define AUTO_LOCK AutoLock cs(&CritSec); + + int morphos_main(int argc, char *argv[]); extern OSystem_MorphOS *TheSystem; |