toast::log::ThreadPolicyConcept< Policy > Struct Template Reference
[toast logging library]

#include <toast/log/thread_policies.hpp>

List of all members.


Detailed Description

template<typename Policy>
struct toast::log::ThreadPolicyConcept< Policy >

The ThreadPolicyConcept describes the interface of a ThreadPolicy. Currently the library provides one ThreadPolicy: toast::log::neutral.

As long as a type meets this interface it may be used with the toast::logger class. A ThreadPolicy must have an internal type named scoped_lock. This internal type must provide a constructor that takes its parent ThreadPolicy. It must also provide two member functions named lock and unlock that take no arguments. As well as a third member function named locked that takes no arguments and returns a bool.

Public Member Functions

void constraints ()
 Tests that a ThreadPolicy meets the correct interface. Should only be used in accordance with the boost concept library.


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

SourceForge.net Logo