refactor: replace RecursiveMutex `m_cs_callbacks_pending` with Mutex (and rename) #24069

pull theStack wants to merge 2 commits into bitcoin:master from theStack:202201-refactor_replace_recursive_mutex_callbacks changing 2 files +9 −9
  1. theStack commented at 12:35 PM on January 14, 2022: member
  2. scripted-diff: rename `m_cs_callbacks_pending` -> `m_callbacks_mutex`
    -BEGIN VERIFY SCRIPT-
    sed -i 's/m_cs_callbacks_pending/m_callbacks_mutex/g' ./src/scheduler.h ./src/scheduler.cpp
    -END VERIFY SCRIPT
    3aa258109e
  3. refactor: replace RecursiveMutex `m_callbacks_mutex` with Mutex
    In each of the critical sections, only the the guarded variables are
    accessed, without any chance that within one section another one is
    called.  Hence, we can use an ordinary Mutex instead of RecursiveMutex.
    5574e6ed52
  4. hebasto approved
  5. hebasto commented at 12:48 PM on January 14, 2022: member

    ACK 5574e6ed52d6effd3b7beff0f09b44449202a585, I have reviewed the code and it looks OK, I agree it can be merged.

  6. DrahtBot added the label Refactoring on Jan 14, 2022
  7. w0xlt approved
  8. w0xlt commented at 10:43 AM on January 16, 2022: contributor

    crACK 5574e6e

  9. MarcoFalke merged this on Jan 17, 2022
  10. MarcoFalke closed this on Jan 17, 2022

  11. theStack deleted the branch on Jan 17, 2022
  12. sidhujag referenced this in commit 808dbb9d51 on Jan 18, 2022
  13. DrahtBot locked this on Jan 17, 2023

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-04-14 21:13 UTC

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