fw4spl
fwCore::mt Namespace Reference

This namespace fwCore::mt provides common foundations for multithread in FW4SPL. More...

Typedefs

typedef ::boost::mutex Mutex
 
typedef ::boost::unique_lock< Mutex > ScopedLock
 
typedef ::boost::recursive_mutex RecursiveMutex
 
typedef ::boost::unique_lock< RecursiveMutex > RecursiveScopedLock
 
typedef ::boost::shared_mutex ReadWriteMutex
 Defines a single writer, multiple readers mutex.
 
typedef ::boost::shared_lock< ReadWriteMutexReadLock
 Defines a lock of read type for read/write mutex. More...
 
typedef ::boost::unique_lock< ReadWriteMutexWriteLock
 Defines a lock of write type for read/write mutex. More...
 
typedef ::boost::upgrade_lock< ReadWriteMutexReadToWriteLock
 Defines an upgradable lock type for read/write mutex. More...
 
typedef ::boost::upgrade_to_unique_lock< ReadWriteMutexUpgradeToWriteLock
 Defines a write lock upgraded from ReadToWriteLock. More...
 

Detailed Description

This namespace fwCore::mt provides common foundations for multithread in FW4SPL.

Date
2012.

Typedef Documentation

typedef ::boost::shared_lock< ReadWriteMutex > fwCore::mt::ReadLock

Defines a lock of read type for read/write mutex.

Note
Multiple read lock can be done.

Definition at line 32 of file core/fwCore/include/fwCore/mt/types.hpp.

typedef ::boost::upgrade_lock< ReadWriteMutex > fwCore::mt::ReadToWriteLock

Defines an upgradable lock type for read/write mutex.

Note
Only one upgradable lock can be done at once but there may be multiple read lock.

Definition at line 42 of file core/fwCore/include/fwCore/mt/types.hpp.

typedef ::boost::upgrade_to_unique_lock< ReadWriteMutex > fwCore::mt::UpgradeToWriteLock

Defines a write lock upgraded from ReadToWriteLock.

Note
Only one upgradable lock can be done at once but there may be multiple read lock.

Definition at line 47 of file core/fwCore/include/fwCore/mt/types.hpp.

typedef ::boost::unique_lock< ReadWriteMutex > fwCore::mt::WriteLock

Defines a lock of write type for read/write mutex.

Note
Only one write lock can be done at once.

Definition at line 37 of file core/fwCore/include/fwCore/mt/types.hpp.