NOAA-EMC / NCEPLIBS-g2c

This library contains C decoder/encoder routines for GRIB edition 2.
Other
18 stars 11 forks source link

make g2c threadsafe #365

Closed edwardhartnett closed 11 months ago

edwardhartnett commented 1 year ago

Thread safety is something all the cool kids are doing.

User programs may well wish to use multithreading, and if g2c is threadsafe they can do so.

I think it will be best to add thread safety soon. Then as new features are added, they can be made threadsafe and tests can be written to ensure it.

I am looking at the pthreads library. It's a POSIX library and is available on all platforms, including Windows. (Windows will probably cause some problems though - it usually does.)

edwardhartnett commented 11 months ago

This has been done.