[erlang-patches] [PATCH] - extending behaviours to support alternative process registries

Henrik Nord <>
Mon Oct 31 14:30:00 CET 2011


On 10/28/2011 04:13 AM, Ulf Wiger wrote:
> git fetch http://github.com/uwiger/otp.git uw_extending_gen
>
> Author: Ulf Wiger<>
> Date:   Thu Oct 27 18:56:54 2011 -0700
>
>      Make behaviours support alternative process registries
>
>      Originally, OTP behaviours support local and global name registration.
>      As there are alternative ways of registering, or identifying, processes
>      (e.g. gproc, nproc), it is interesting to offer an alternative way to
>      register and locate instances of OTP behaviours.
>
>      We define an instance reference, {via, Module, Name}, where Module exports
>      the functions register_name/2, unregister_name/1, and send/2. These function
>      should have the same types as the corresponding functions in global.erl.
>
>
> This patch has been lying around for a while, and there was some (positive) discussion about it on the erlang-questions list.
>
> I have merged the current 'dev' branch, updated docs and verified it together with gproc, which is also prepared to support this functionality.
>
> BR,
> Ulf
>
> Ulf Wiger, CTO, Erlang Solutions, Ltd.
> http://erlang-solutions.com
>
>
>
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches
Thank you I have now included your patch in 'pu'

-- 
/Henrik Nord Erlang/OTP



More information about the erlang-patches mailing list