Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: r14-0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.506 kb
-module(ref_dispatch).
-behaviour(dispcount).
-export([init/1, checkout/2, checkin/2, handle_info/2, dead/1,
terminate/2, code_change/3]).
init([]) ->
{ok, make_ref()}.
checkout(_From, Ref) ->
{ok, Ref, undefined}.
checkin(Ref, undefined) ->
{ok, Ref};
checkin(_SomeRef, Ref) ->
{ignore, Ref}.
dead(undefined) ->
{ok, make_ref()}.
handle_info(_Msg, State) ->
{ok, State}.
terminate(_Reason, _State) ->
ok.
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
Jump to Line
Something went wrong with that request. Please try again.