Waits for the writer thread to terminate.
Writes the args in a thread-safe manner.
Writes the args in a thread-safe manner in red (POSIX only). and appends a newline.
Writes the args in a thread-safe manner in yellow (POSIX only). and appends a newline.
Writes the args in a thread-safe manner and appends a newline.
Writes the args in a thread-safe manner in green (POSIX only). and appends a newline.
Writes the args in a thread-safe manner in red (POSIX only) and appends a newline.
Returns a reference to the only instance of this class.
Creates the singleton instance and waits until it's ready.
Thread to output to stdout