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

We should check the ThreadSafetyContext on thread creation

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch

      We check the ThreadSafetyContext here. Unfortunately, that is already on a new thread, so the stack we produce has nothing useful in it. Compare that to here where we check before we spawn the thread. I think we should check in the stdx::thread constructor instead, either in the body or in a function invoked during lambda binding. This way, we get the stack of the main thread instead.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: