atomicity of spawn with global process registry?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

atomicity of spawn with global process registry?

Vans S
What is the order of events/guarantees that happen with gen_server start + global name register?

Does register happen before the init?

If I do a normal spawn then do a register in 2 separate calls, I have a chance to call the register while init is already evaluating, 
which triggers my race condition. As another process is sending a message to this process, and expects init to NOT start evaluating UNTIL the process is registered.


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions