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

Create a os shim for one-time initialization

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.4.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I created a shim for one-time initialization to remove global.c's dependency on pthread.

      The only downside of this implementation is that you cannot support multiple different one time init functions (i.e., _wt_global_once) in a process since pthread_once_t is a static of __wt_once. Let me know is this is an unsuitable design limitation.

      Tested on MacOS.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: