global lock

Roberto Ostinelli ostinelli@REDACTED
Mon Nov 25 17:43:32 CET 2019


Ok, so indeed the flag I was referring to seems to be a necessity.
Thank you,
r.

On Mon, Nov 25, 2019 at 5:21 PM Paul Peregud <paulperegud@REDACTED> wrote:

> > global:trans/4 allows to set the number of retries, so one approach
> could be to set retries to 0 so *if* my understanding is correct, only 1
> node would do the conflict resolution (the one that grabs the lock). If
> some kind soul can confirm that this is correct, thank you in advance. :)
>
> That's not enough. Alice may detect the issue, grab the lock, resolve
> the issue and release the lock before Bob receives the signal and
> attempts to grab the lock. You need some kind of ConflictId ->
> resolved :: boolean() mapping.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191125/cdbaf9cd/attachment.htm>


More information about the erlang-questions mailing list