sync.h File Reference

#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();

Detailed Description

Definition in file sync.h.


Define Documentation

#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();
 
#define AUTOUNLOCK (  )     mutex_autolock->unlock();
#define LOCK ( mutex   )     mutex->lock();

Definition at line 44 of file sync.h.

#define UNLOCK ( mutex   )     mutex->unlock();

Definition at line 45 of file sync.h.


Generated on Fri Mar 26 20:16:55 2010 for MediaTomb by  doxygen 1.6.1