WriterThread

Thread to output to stdout

Members

Functions

join
void join()

Waits for the writer thread to terminate.

write
void write(T args)

Writes the args in a thread-safe manner.

writeRed
void writeRed(T args)

Writes the args in a thread-safe manner in red (POSIX only). and appends a newline.

writeYellow
void writeYellow(T args)

Writes the args in a thread-safe manner in yellow (POSIX only). and appends a newline.

writeln
void writeln(T args)

Writes the args in a thread-safe manner and appends a newline.

writelnGreen
void writelnGreen(T args)

Writes the args in a thread-safe manner in green (POSIX only). and appends a newline.

writelnRed
void writelnRed(T args)

Writes the args in a thread-safe manner in red (POSIX only) and appends a newline.

Static functions

get
WriterThread get()

Returns a reference to the only instance of this class.

start
void start()

Creates the singleton instance and waits until it's ready.

Meta