Skip to content

Commit

Permalink
Fixed select/qlc scope (default: all); fixed dist eunit test; new rebar
Browse files Browse the repository at this point in the history
gproc:select/1 now defaults to global+local scope (BW incompatible change)
Type specs have been updated to reflect that {Scope, Type} is a valid first
argument to select/2, first/1, next/2 et al.

The gproc_dist_tests module has been improved, and now works (most of the time,
although it can still time out occasionally).
  • Loading branch information
Ulf Wiger committed Apr 18, 2011
1 parent fdc3283 commit 59365c4
Show file tree
Hide file tree
Showing 11 changed files with 292 additions and 235 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -47,11 +47,11 @@ An interesting application of gproc is building publish/subscribe patterns.
Example:

<pre>
subscribe(EventType) -&gt;
subscribe(EventType) ->
%% Gproc notation: {p, l, Name} means {(p)roperty, (l)ocal, Name}
gproc:reg({p, l, {?MODULE, EventType}}).

notify(EventType, Msg) -&gt;
notify(EventType, Msg) ->
Key = {?MODULE, EventType},
gproc:send({p, l, Key}, {self(), Key, Msg}).
</pre>
Expand Down
4 changes: 2 additions & 2 deletions doc/README.md
Expand Up @@ -47,11 +47,11 @@ An interesting application of gproc is building publish/subscribe patterns.
Example:

<pre>
subscribe(EventType) -&gt;
subscribe(EventType) ->
%% Gproc notation: {p, l, Name} means {(p)roperty, (l)ocal, Name}
gproc:reg({p, l, {?MODULE, EventType}}).

notify(EventType, Msg) -&gt;
notify(EventType, Msg) ->
Key = {?MODULE, EventType},
gproc:send({p, l, Key}, {self(), Key, Msg}).
</pre>
Expand Down

0 comments on commit 59365c4

Please sign in to comment.