diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2011-12-31 10:04:46 +0100 |
| commit | 7a36a103aec1c0aafc89a45a4c7fb82944e6baba (patch) | |
| tree | e698f27932240b7b6d7ddc357be02cf4f498d9d5 /src/engine/client/graphics_threaded.h | |
| parent | 8a91bfa1ddff0c99d65375b8b5c57e710169543a (diff) | |
| download | zcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.tar.gz zcatch-7a36a103aec1c0aafc89a45a4c7fb82944e6baba.zip | |
fixed so that the rendering can be done async from the input, network and update
Diffstat (limited to 'src/engine/client/graphics_threaded.h')
| -rw-r--r-- | src/engine/client/graphics_threaded.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/engine/client/graphics_threaded.h b/src/engine/client/graphics_threaded.h index 1ec8c61c..a4c4ab40 100644 --- a/src/engine/client/graphics_threaded.h +++ b/src/engine/client/graphics_threaded.h @@ -143,12 +143,17 @@ public: SColor m_Color; }; - struct SCommand_Init : public SCommand { SCommand_Init() : SCommand(CMD_INIT) {} volatile int *m_pResult; }; + + struct SCommand_Signal : public SCommand + { + SCommand_Signal() : SCommand(CMD_SIGNAL) {} + semaphore *m_pSemaphore; + }; struct SCommand_RunBuffer : public SCommand { @@ -393,4 +398,8 @@ public: virtual int GetVideoModes(CVideoMode *pModes, int MaxModes); + // syncronization + virtual void InsertSignal(semaphore *pSemaphore); + virtual bool IsIdle(); + virtual void WaitForIdle(); }; \ No newline at end of file |