c🦊
Size: a a a
c🦊
ŹR
ŹR
ŹR
ŹR
c🦊
c🦊
ŹR
c🦊
c🦊
c🦊
LL
LL
D
LL
NIF
D
NIF
LL
Threads and concurrency
A NIF is thread-safe without any explicit synchronization as long as it acts as a pure function and only reads the supplied arguments. When you write to a shared state either through static variables or enif_priv_data, you need to supply your own explicit synchronization. This includes terms in process independent environments that are shared between threads. Resource objects also require synchronization if you treat them as mutable.
c🦊
c🦊
LL