The caller is going to call poll() or something, so locking a mutex is surely not a performance issue.
Attach a file by drag & drop or click to upload