[erlang-questions] Fwd: Freeze gen_server
Gleb Vinogradov
g.a.vinogradov@REDACTED
Tue Mar 29 15:51:14 CEST 2016
Hi, Roberto.
Have you tried sys:suspend/1, sys:resume/1 ?
Gleb.
2016-03-29 19:44 GMT+06:00 Roberto Ostinelli <roberto@REDACTED>:
> Dear list,
> I realize how this sounds but: is there a way to temporarily "freeze" a
> gen_server, so that messages sent to it are not received and its message
> box stays intact until it is "unfrozen"?
>
> What I am trying to achieve: I need to provide a "global lock" mechanism
> for a specific use case related to cluster conflict resolution. While that
> conflict resolution is ongoing, I want to ensure that no other changes
> happen anywhere else.
>
> Any ideas?
>
> Thanks,
> r.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160329/4f698e46/attachment.htm>
More information about the erlang-questions
mailing list