Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::MessageHandler::Scope Class Reference

#include <MessageHandler.h>

Inherits noncopyable.

Public Member Functions

 Scope (MessageHandler *handler)
 
 ~Scope ()
 

Detailed Description

Each thread has its own stack of message handlers which may be pushed and popped to provide message handling specific to particular contexts. The Scope class is used to install these local handlers on construction and uninstall them on destruction.

Threading:
The Scope class provides a threadsafe means of installing and uninstalling MessageHandlers.

Constructor & Destructor Documentation

IECore::MessageHandler::Scope::Scope ( MessageHandler handler)

Pushes the specified handler, making it the currentHandler() for this thread. It is the caller's responsibility to keep the handler alive for the lifetime of the Scope class.

IECore::MessageHandler::Scope::~Scope ( )

Pops the handler pushed in the constructor, reverting to the previous handler.


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