#include "common.h"#include <pthread.h>Go to the source code of this file.
Data Structures | |
| class | MutexAutolock |
| class | Mutex |
| class | Cond |
Defines | |
| #define | AUTOLOCK_DEFINE_ONLY() zmm::Ref<MutexAutolock> mutex_autolock; |
| #define | AUTOLOCK_NOLOCK(mutex) zmm::Ref<MutexAutolock> mutex_autolock = mutex->getAutolock(true); |
| #define | AUTOLOCK(mutex) zmm::Ref<MutexAutolock> mutex_autolock = mutex->getAutolock(); |
| #define | AUTOLOCK_NO_DEFINE(mutex) mutex_autolock = mutex->getAutolock(); |
| #define | AUTOUNLOCK() mutex_autolock->unlock(); |
| #define | AUTORELOCK() mutex_autolock->relock(); |
| #define | LOCK(mutex) mutex->lock(); |
| #define | UNLOCK(mutex) mutex->unlock(); |
Definition in file sync.h.
| #define AUTOLOCK | ( | mutex | ) | zmm::Ref<MutexAutolock> mutex_autolock = mutex->getAutolock(); |
Definition at line 40 of file sync.h.
Referenced by SQLStorage::_findObjectByPath(), ContentManager::_rescanDirectory(), AutoscanList::add(), AutoscanList::addList(), SQLStorage::addObject(), ContentManager::addTask(), Timer::addTimerSubscriber(), SQLStorage::addToInsertBuffer(), SQLStorage::browse(), StorageCache::clear(), Session::clearUpdateIDs(), UpdateManager::containerChanged(), SessionManager::containerChangedUI(), Session::containerChangedUI(), UpdateManager::containersChanged(), SQLStorage::createContainer(), SessionManager::createSession(), AutoscanList::get(), AutoscanList::getArrayCopy(), AutoscanList::getByObjectID(), SQLStorage::getChildCount(), ContentManager::getCurrentTask(), Storage::getInstance(), Singleton< SessionManager >::getInstance(), SingletonManager::getInstance(), CachedURL::getLastAccessTime(), SQLStorage::getNextID(), ContentManager::getTasklist(), Session::getUIUpdateIDs(), CachedURL::getURL(), ContentManager::initLayout(), ContentManager::invalidateTask(), ThreadExecutor::kill(), SQLStorage::loadObject(), SingletonManager::registerSingleton(), AutoscanList::remove(), AutoscanList::removeByObjectID(), AutoscanList::removeIfSubdir(), StorageCache::removeObject(), ContentManager::removeObject(), SessionManager::removeSession(), Timer::removeTimerSubscriber(), UpdateManager::shutdown(), SingletonManager::shutdown(), ContentManager::shutdown(), IOHandlerBufferHelper::stopBufferThread(), UpdateManager::threadProc(), ContentManager::threadProc(), BufferedIOHandler::threadProc(), SessionManager::timerNotify(), Timer::triggerWait(), AutoscanList::updateLMinDB(), and Server::upnp_callback().
| #define AUTOLOCK_DEFINE_ONLY | ( | ) | zmm::Ref<MutexAutolock> mutex_autolock; |
Definition at line 38 of file sync.h.
Referenced by SQLStorage::addObjectToCache(), and SQLStorage::flushInsertBuffer().
| #define AUTOLOCK_NO_DEFINE | ( | mutex | ) | mutex_autolock = mutex->getAutolock(); |
Definition at line 41 of file sync.h.
Referenced by SQLStorage::addObjectToCache(), and SQLStorage::flushInsertBuffer().
| #define AUTOLOCK_NOLOCK | ( | mutex | ) | zmm::Ref<MutexAutolock> mutex_autolock = mutex->getAutolock(true); |
Definition at line 39 of file sync.h.
Referenced by SessionManager::getSession().
| #define AUTORELOCK | ( | ) | mutex_autolock->relock(); |
Definition at line 43 of file sync.h.
Referenced by UpdateManager::containersChanged(), SessionManager::getSession(), UpdateManager::threadProc(), ContentManager::threadProc(), and BufferedIOHandler::threadProc().
| #define AUTOUNLOCK | ( | ) | mutex_autolock->unlock(); |
Definition at line 42 of file sync.h.
Referenced by UpdateManager::containersChanged(), ThreadExecutor::kill(), UpdateManager::shutdown(), ContentManager::shutdown(), IOHandlerBufferHelper::stopBufferThread(), UpdateManager::threadProc(), ContentManager::threadProc(), and BufferedIOHandler::threadProc().
1.6.1