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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Storage
    • None
    • Storage NYC 2018-11-05, Storage NYC 2018-11-19

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: