utils: add async-queue, ansio-printer

Add an async-queue (rougly, GAsyncQueue but in c++ using a deque)

Add an ANSI color printer.
This commit is contained in:
Dirk-Jan C. Binnema
2020-06-26 19:21:04 +03:00
parent 281a4cc7db
commit 73f4c49364
4 changed files with 234 additions and 3 deletions

View File

@ -163,10 +163,8 @@ Mu::log_init (const std::string& path, Mu::LogOptions opts)
void
Mu::log_uninit ()
{
if (!MuLogInitialized) {
g_warning ("logging was not initialized");
if (!MuLogInitialized)
return;
}
if (MuStream.is_open())
MuStream.close();