HomePhabricator

Serialize access to debug.log stream
fea25712ca54Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Serialize access to debug.log stream

Acquire an exclusive, advisory lock before sending output to debug.log
and release it when we're done. This should avoid output from multiple
threads being interspersed in the log file.

We can't use CRITICAL_SECTION machinery for this because the debug log
is written during startup and shutdown when that machinery is not
available.

(Thanks to Gavin for pointing out the CRITICAL_SECTION problems based
on his earlier work in this area)

Details

Provenance
Michael Hendricks <michael@ndrix.org>Authored on Mar 2 2012, 19:24
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING660ff174f299: Use boost::thread locking instead of interprocess
Branches
Unknown
Tags
Unknown

Event Timeline

Michael Hendricks <michael@ndrix.org> committed rSTAGINGfea25712ca54: Serialize access to debug.log stream (authored by Michael Hendricks <michael@ndrix.org>).May 18 2012, 22:19