Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37890

Add a callback to the ThreadPool options to create a thread client using the RAII Client helper

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Storage NYC 2018-11-05, Storage NYC 2018-11-19

      With the introduction of the RAII Client helper class in SERVER-36473, we can further remove any references to Client::initThread or Client::initThreadIfNotAlready in the ThreadPool's onCreateThread callback.

      Furthermore we can remove more unmanaged Client instances and replace them with the RAII Client helper for those that are in similarly structured ways as ThreadPools, such as stdx::thread and stdx::packaged_task.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: