This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Remco, > I found a piece of code on the internet that remarked that UDUNITS2 > isn't thread safe. Can you comment on this? The UDUNITS-2 package is thread-compatible but not thread-safe. > Will I be fine when I > enclose all pieces of code that contain UDUNITS2 calls in mutexes? Bracketing all UDUNITS-2 calls with mutexes will make it thread-safe. > This is where I found the code: > https://bitbucket.org/djerius/lua_udunits2/src/ea7f12c2a949/lua_udunits2 > /udunits2.c.0 > > > > Thanks, > > Remco Braak > > Royal Netherlands Meteorological Institute Regards, Steve Emmerson Ticket Details =================== Ticket ID: POJ-818358 Department: Support UDUNITS Priority: Normal Status: Closed