123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- -module(gproc_bcast).
- -behaviour(gen_server).
- -export([start_link/0,
- init/1,
- handle_cast/2,
- handle_call/3,
- handle_info/2,
- terminate/2,
- code_change/3]).
- -include("gproc_int.hrl").
- start_link() ->
- gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
- init([]) ->
- {ok, []}.
- handle_call(_, _, S) ->
- {reply, {error, unknown_call}, S}.
- handle_cast({send, Key, Msg}, S) ->
- ?MAY_FAIL(gproc:send(Key, Msg)),
- {noreply, S};
- handle_cast(_, S) ->
- {noreply, S}.
- handle_info(_, S) ->
- {noreply, S}.
- terminate(_, _) ->
- ok.
- code_change(_, S, _) ->
- {ok, S}.
|