diff options
author | Paul Gilbert | 2012-05-13 19:02:47 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-13 19:02:47 +1000 |
commit | 8466314735761e3b71adfcc34471db539c14bad2 (patch) | |
tree | 9fdeb4ad244a1931701d935cde45434bbe07cddd /engines/tony/gfxcore.cpp | |
parent | 8b214ce99211e9d952c0508e35066af8dc761916 (diff) | |
download | scummvm-rg350-8466314735761e3b71adfcc34471db539c14bad2.tar.gz scummvm-rg350-8466314735761e3b71adfcc34471db539c14bad2.tar.bz2 scummvm-rg350-8466314735761e3b71adfcc34471db539c14bad2.zip |
TONY: Disabled target buffer mutex which isn't needed anymore
Diffstat (limited to 'engines/tony/gfxcore.cpp')
-rw-r--r-- | engines/tony/gfxcore.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp index 6f24941545..49dd36cfe7 100644 --- a/engines/tony/gfxcore.cpp +++ b/engines/tony/gfxcore.cpp @@ -295,18 +295,18 @@ RMGfxClearTask RMGfxTargetBuffer::taskClear; RMGfxTargetBuffer::RMGfxTargetBuffer() { otlist = NULL; m_otSize = 0; - csModifyingOT = g_system->createMutex(); +// csModifyingOT = g_system->createMutex(); } RMGfxTargetBuffer::~RMGfxTargetBuffer() { ClearOT(); - g_system->deleteMutex(csModifyingOT); +// g_system->deleteMutex(csModifyingOT); } void RMGfxTargetBuffer::ClearOT(void) { OTList *cur, *n; - g_system->lockMutex(csModifyingOT); +// g_system->lockMutex(csModifyingOT); cur = otlist; @@ -320,7 +320,7 @@ void RMGfxTargetBuffer::ClearOT(void) { otlist = NULL; - g_system->unlockMutex(csModifyingOT); +// g_system->unlockMutex(csModifyingOT); } void RMGfxTargetBuffer::DrawOT(CORO_PARAM) { @@ -339,7 +339,7 @@ void RMGfxTargetBuffer::DrawOT(CORO_PARAM) { // Lock del buffer per accederci Lock(); - g_system->lockMutex(csModifyingOT); +// g_system->lockMutex(csModifyingOT); while (_ctx->cur != NULL) { // Richiama la draw sul task, passandogli una copia della primitiva @@ -373,7 +373,7 @@ void RMGfxTargetBuffer::DrawOT(CORO_PARAM) { } } - g_system->unlockMutex(csModifyingOT); +// g_system->unlockMutex(csModifyingOT); // Unlock dopo la scrittura Unlock(); @@ -385,7 +385,7 @@ void RMGfxTargetBuffer::AddPrim(RMGfxPrimitive *prim) { int nPrior; OTList *cur, *n; - g_system->lockMutex(csModifyingOT); +// g_system->lockMutex(csModifyingOT); // Avverte che e' in lista di OT prim->m_task->Register(); @@ -412,7 +412,7 @@ void RMGfxTargetBuffer::AddPrim(RMGfxPrimitive *prim) { cur->next = n; } - g_system->unlockMutex(csModifyingOT); +// g_system->unlockMutex(csModifyingOT); } void RMGfxTargetBuffer::AddClearTask(void) { |