OutputDebugStringF code cleanup #2142

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:utilprint changing 2 files +57 −42
  1. gavinandresen commented at 10:18 PM on January 1, 2013: contributor

    There was a bunch of shed-painting about this before the 0.7.1 release, and I promised to tidy up the code, so:

    Initialize the OutputDebugStringF mutex and file pointer using boost::call_once, to be thread-safe.

    Make the return value of OutputDebugStringF really be the number of characters written (*printf() semantics).

    Declare the fReopenDebugLog flag volatile, since it is changed from a signal handler.

    And don't declare OutputDebugStringF() as inline.

  2. OutputDebugStringF code cleanup
    Initialize the OutputDebugStringF mutex and file pointer using
    boost::call_once, to be thread-safe.
    Make the return value of OutputDebugStringF really be the number of
    characters written (*printf() semantics).
    Declare the fReopenDebugLog flag volatile, since it is changed from
    a signal handler.
    And don't declare OutputDebugStringF() as inline.
    ee3374234c
  3. Diapolo commented at 3:05 PM on January 2, 2013: none

    Compiles fine, no obvious weird behaviour, while doing IBD and such.

  4. laanwj commented at 3:57 PM on January 2, 2013: member

    ACK

  5. BitcoinPullTester commented at 7:18 AM on January 3, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c for binaries and test log.

  6. sipa commented at 12:12 AM on January 6, 2013: member

    ACK

  7. gavinandresen referenced this in commit 40e31fd373 on Jan 14, 2013
  8. gavinandresen merged this on Jan 14, 2013
  9. gavinandresen closed this on Jan 14, 2013

  10. laudney referenced this in commit 77b58c99ee on Mar 19, 2014
  11. owlhooter referenced this in commit 5e1149a655 on Oct 11, 2018
  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me