[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #POJ-818358]: UDUNITS-2 and thread safety


> 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

Steve Emmerson

Ticket Details
Ticket ID: POJ-818358
Department: Support UDUNITS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.