CodeContext.h
Go to the documentation of this file.
100 CodeContextGuard(const CodeContext::Pointer &newContext): savedCodeContext(CodeContext::Current()) { CodeContext::Reset(newContext); }
std::ostream & operator<<(std::ostream &os, const CodeContext &ctx)
by default, only small context gist is printed
Definition: CodeContext.h:86
std::ostream & CurrentCodeContextBrief(std::ostream &os)
void CallService(const CodeContext::Pointer &serviceContext, Fun &&service)
Definition: CodeContext.h:133
void CallBack(const CodeContext::Pointer &callbackContext, Fun &&callback)
Definition: CodeContext.h:116
std::ostream & CurrentCodeContextDetail(std::ostream &os)
Definition: CodeContext.cc:96
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: CodeContext.h:98
CodeContext::Pointer savedCodeContext
Definition: CodeContext.h:106
CodeContextGuard(const CodeContext::Pointer &newContext)
Definition: CodeContext.h:100
CodeContextGuard(CodeContextGuard &&)=delete
Definition: CodeContext.h:53
virtual std::ostream & detailCodeContext(std::ostream &os) const =0
appends human-friendly context description line(s) to a cache.log record
virtual ScopedId codeContextGist() const =0
static void Reset()
forgets the current context, setting it to nil/unknown
Definition: CodeContext.cc:77
Definition: InstanceId.h:19
Definition: Stopwatch.h:19