Hello gang!
Is there a way to create file system based locks without using a NIF in Erlang?
Cheers,
Louis
Hello gang!
Is there a way to create file system based locks without using a NIF in Erlang?
Cheers,
Louis
I’m afraid not. All the modes are documented in file
, but to be sure I looked at erts/emulator/nifs/common/prim_file_nif.c
, modes that are not documented are dropped on the floor. Likewise, flock
and friends are not exposed anywhere.
There’s probably a good reason for this not being supported, interested in an answer to that.
Alas! Thank you for investigating for me
Ah wonderful, I will subscribe to that PR and look forward to it’s being merged.