Loading...
Searching...
No Matches
application_runtime.h
Go to the documentation of this file.
void posixCheck(bool success, const char *operation)
Convert a failed POSIX result into an operation-specific exception.
Definition application_runtime.h:128
void winCheck(bool success, const char *operation)
Compatibility name for the shared POSIX failure check.
Definition application_runtime.h:136
SessionLog(const fs::path &directory, const fs::path &filename="pangea.log")
Open an append-only session log and install console mirroring.
Definition application_runtime.h:110
~SessionLog()
Detach the tee buffers before their file and lock are destroyed.
Definition application_runtime.h:121
Stream one message to both the original console and the session log.
Definition application_runtime.h:41
TeeBuffer(std::streambuf *console, std::streambuf *file, std::mutex &mutex)
Bind two destinations to a caller-owned synchronization lock.
Definition application_runtime.h:86
int overflow(int character) override
Mirror a single character not handled by a put area.
Definition application_runtime.h:62
std::streamsize xsputn(const char *data, std::streamsize size) override
Write a block to both outputs under the shared lock.
Definition application_runtime.h:52
int sync() override
Synchronize the two outputs without interleaving other writes.
Definition application_runtime.h:75