Skip to content

Thread safety Part 1 #1373

@DennisHeimbigner

Description

@DennisHeimbigner

Since changes to the netcdf-c library appear to be slowing down for the moment,
I am going to create a PR that is an initial step to thread safety support.
Specifically, I am going to start collecting all global variables and computed
constants into a single file.
There are some complexities.

  1. Some global variables are used by all (or almost all) dispatchers.
    These will need to be protected by a global mutex.
  2. Some global variables are used by only a single dispatcher.
    Thread safe access to them will need to be done by that dispatcher's code.
  3. Computed constants will be initialized by a single initialization routine
    that uses a separate mutex. Once these constants are initialized, they will
    be accessible without any synchronization.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions