Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Threads::StaticLocked< Host, MutexPolicy > Class Template Reference

Use to specify objects which lock by class. More...

#include <ThreadingPolicy.h>

Inheritance diagram for Protium::Threads::StaticLocked< Host, MutexPolicy >:

Classes

class  Lock
 Lock on instance creation uses the static initializer to lock all instances of host. More...
 

Static Private Attributes

static struct
Protium::Threads::StaticLocked::Initializer 
fInitializer
 

Friends

class Lock
 

Additional Inherited Members

- Public Types inherited from Protium::Threads::ThreadingPrototype< Host >
typedef Host VolatileType
 Use to access Host class from derived templates. More...
 

Detailed Description

template<class Host, class MutexPolicy = Mutex>
class Protium::Threads::StaticLocked< Host, MutexPolicy >

Use to specify objects which lock by class.

For instance, to prevent bad file read-writes, all streams should lock simultaniously by double-lock single check.

Definition at line 131 of file ThreadingPolicy.h.

Friends And Related Function Documentation

template<class Host , class MutexPolicy = Mutex>
friend class Lock
friend

Definition at line 155 of file ThreadingPolicy.h.

Member Data Documentation

template<class Host , class MutexPolicy = Mutex>
StaticLocked< Host, MutexPolicy >::Initializer Protium::Threads::StaticLocked< Host, MutexPolicy >::fInitializer
staticprivate

Definition at line 195 of file ThreadingPolicy.h.