Cortex
10.0.0-a4
|
#include <MessageHandler.h>
Inherits noncopyable.
Public Member Functions | |
Scope (MessageHandler *handler) | |
~Scope () | |
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.
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.