ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

ModularMutexBackend Class Reference

#include <modular-backend.h>

Inheritance diagram for ModularMutexBackend:
Collaboration diagram for ModularMutexBackend:

List of all members.

Public Member Functions

 ModularMutexBackend ()
virtual ~ModularMutexBackend ()
Mutex handling

virtual MutexRef createMutex () override final
 Create a new mutex.
virtual void lockMutex (MutexRef mutex) override final
 Lock the given mutex.
virtual void unlockMutex (MutexRef mutex) override final
 Unlock the given mutex.
virtual void deleteMutex (MutexRef mutex) override final
 Delete the given mutex.

Protected Attributes

Managers variables


Detailed Description

Definition at line 164 of file modular-backend.h.

Constructor & Destructor Documentation

ModularMutexBackend::ModularMutexBackend (  ) 

Definition at line 306 of file modular-backend.cpp.

ModularMutexBackend::~ModularMutexBackend (  )  [virtual]

Definition at line 312 of file modular-backend.cpp.

Member Function Documentation

OSystem::MutexRef ModularMutexBackend::createMutex (  )  [override, virtual]

Create a new mutex.

the newly created mutex, or 0 if an error occurred.

Implements OSystem.

Definition at line 320 of file modular-backend.cpp.

void ModularMutexBackend::deleteMutex ( MutexRef  mutex  )  [override, virtual]

Delete the given mutex.

Make sure the mutex is unlocked before you delete it. If you delete a locked mutex, the behavior is undefined, in particular, your program may crash.

mutex the mutex to delete.

Implements OSystem.

Definition at line 335 of file modular-backend.cpp.

void ModularMutexBackend::lockMutex ( MutexRef  mutex  )  [override, virtual]

Lock the given mutex.

ScummVM code assumes that the mutex implementation supports recursive locking. That is, a thread may lock a mutex twice w/o deadlocking. In case of a multilock, the mutex has to be unlocked as many times as it was locked befored it really becomes unlocked.
mutex the mutex to lock.

Implements OSystem.

Definition at line 325 of file modular-backend.cpp.

void ModularMutexBackend::unlockMutex ( MutexRef  mutex  )  [override, virtual]

Unlock the given mutex.

mutex the mutex to unlock.

Implements OSystem.

Definition at line 330 of file modular-backend.cpp.

Member Data Documentation

Definition at line 183 of file modular-backend.h.

The documentation for this class was generated from the following files:

Generated on Sat Sep 26 2020 05:02:37 for ResidualVM by doxygen 1.7.1
curved edge   curved edge