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.
Thread to output to stdout