Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8696

Introduce WT_THREAD_WRAPPER struct for handling threads

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 0
    • Storage - Ra 2022-01-24, Storage - Ra 2022-02-07

      Summary
      Child ticket of WT-8663. 0 story points as the cost is already covered by the parent ticket.

      In connection.h there are multiple occurrences where wt_thread_t variables have the same helper variables defined:
      WT_CONDVAR xxx_cond;
      WT_SESSION_IMPL xxx_session;
      wt_thread_t xxx_tid;
      bool xxx_tid_set;

      and a large amount of code using these variables that is similar across all threads.

      This ticket is to investigate if we can take these similar code patterns and capture it in subfunctions.

            Assignee:
            andrew.morton@mongodb.com Andrew Morton
            Reporter:
            andrew.morton@mongodb.com Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: