OpenMW
Classes | Static Public Member Functions | Private Types | Static Private Attributes
Nif::NIFFile::LoadedCache Class Reference

List of all members.

Classes

struct  mutex

Static Public Member Functions

static ptr create (const std::string &name)
static void release (NIFFile *file)
static void lockCache ()
static void unlockCache ()

Private Types

typedef boost::lock_guard< mutexlock_guard
typedef std::map< std::string,
boost::weak_ptr< NIFFile > > 
loaded_map
typedef std::vector
< boost::shared_ptr< NIFFile > > 
locked_files

Static Private Attributes

static int sLockLevel = 0
static mutex sProtector
static loaded_map sLoadedMap
static locked_files sLockedFiles

Member Typedef Documentation

typedef std::map< std::string, boost::weak_ptr <NIFFile> > Nif::NIFFile::LoadedCache::loaded_map [private]
typedef boost::lock_guard<mutex> Nif::NIFFile::LoadedCache::lock_guard [private]
typedef std::vector< boost::shared_ptr <NIFFile> > Nif::NIFFile::LoadedCache::locked_files [private]

Member Function Documentation

static ptr Nif::NIFFile::LoadedCache::create ( const std::string &  name) [inline, static]
static void Nif::NIFFile::LoadedCache::lockCache ( ) [inline, static]
static void Nif::NIFFile::LoadedCache::release ( NIFFile file) [inline, static]
static void Nif::NIFFile::LoadedCache::unlockCache ( ) [inline, static]

Member Data Documentation

int Nif::NIFFile::LoadedCache::sLockLevel = 0 [static, private]

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