| Support Forum Library Source SourceForge Page G3D Web Page |
Mutual exclusion lock used for synchronization. More...
Public Member Functions | |
| GMutex () | |
| ~GMutex () | |
| void | lock () |
| Locks the mutex or blocks until available. | |
| bool | tryLock () |
| Locks the mutex if it not already locked. | |
| void | unlock () |
| Unlocks the mutex. | |
Mutual exclusion lock used for synchronization.
| G3D::GMutex::GMutex | ( | ) |
| G3D::GMutex::~GMutex | ( | ) |
| void G3D::GMutex::lock | ( | ) |
Locks the mutex or blocks until available.
Referenced by G3D::BlockPoolMemoryManager::alloc(), G3D::FileSystem::cacheLifetime(), G3D::FileSystem::clearCache(), G3D::FileSystem::copyFile(), G3D::FileSystem::createDirectory(), G3D::FileSystem::currentDirectory(), G3D::FileSystem::drives(), G3D::FileSystem::exists(), G3D::FileSystem::fclose(), G3D::FileSystem::fopen(), G3D::BlockPoolMemoryManager::free(), G3D::BlockPoolMemoryManager::freeListNumBlocks(), G3D::FileSystem::getDirectories(), G3D::FileSystem::getFiles(), G3D::GMutexLock::GMutexLock(), G3D::FileSystem::inZipfile(), G3D::FileSystem::isDirectory(), G3D::FileSystem::isFile(), G3D::FileSystem::isNewer(), G3D::FileSystem::isZipfile(), G3D::FileSystem::list(), G3D::FileSystem::removeFile(), G3D::FileSystem::resolve(), G3D::FileSystem::setCacheLifetime(), G3D::FileSystem::size(), and G3D::BlockPoolMemoryManager::~BlockPoolMemoryManager().
| bool G3D::GMutex::tryLock | ( | ) |
Locks the mutex if it not already locked.
Returns true if lock successful, false otherwise.
| void G3D::GMutex::unlock | ( | ) |
Unlocks the mutex.
Referenced by G3D::BlockPoolMemoryManager::alloc(), G3D::FileSystem::cacheLifetime(), G3D::FileSystem::clearCache(), G3D::FileSystem::copyFile(), G3D::FileSystem::createDirectory(), G3D::FileSystem::currentDirectory(), G3D::FileSystem::drives(), G3D::FileSystem::exists(), G3D::FileSystem::fclose(), G3D::FileSystem::fopen(), G3D::BlockPoolMemoryManager::free(), G3D::BlockPoolMemoryManager::freeListNumBlocks(), G3D::FileSystem::getDirectories(), G3D::FileSystem::getFiles(), G3D::FileSystem::inZipfile(), G3D::FileSystem::isDirectory(), G3D::FileSystem::isFile(), G3D::FileSystem::isNewer(), G3D::FileSystem::isZipfile(), G3D::FileSystem::list(), G3D::FileSystem::removeFile(), G3D::FileSystem::resolve(), G3D::FileSystem::setCacheLifetime(), G3D::FileSystem::size(), and G3D::BlockPoolMemoryManager::~BlockPoolMemoryManager().
1.8.2