#include <toast/log/thread_policies.hpp>
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. |