This is a trivial function. Merge some duplicate code, e.g. the g_cond_broadcast() call.
Attach a file by drag & drop or click to upload