[erlang-questions] Sharing child processes across supervisors

Ulf Wiger ulf.wiger@REDACTED
Sat Mar 6 19:18:55 CET 2010


Jayson Vantuyl wrote:
> 
> The "better" way, in my opinion, is to have A & B loop over whereis
> until M is registered.  I use the following function, in the init of
> the linking processes:

...or if you use the latest version of gproc:

gproc:await(RegName) -> {Pid, Value}

http://github.com/uwiger/gproc

No need to poll.

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Solutions Ltd, formerly Erlang Training & Consulting Ltd
http://www.erlang-solutions.com
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

www.erlang-solutions.com



More information about the erlang-questions mailing list