mirror https://github.com/uwiger/gproc

Ulf Wiger 95a6320b65 added 'doc' target to Makefile 14 лет назад
doc 98ba2d9bfa added rebar support 14 лет назад
ebin 98ba2d9bfa added rebar support 14 лет назад
include 9d5340e024 fixes noted by @jlouis, first eunit suite, bug fixes around mreg 14 лет назад
patches d0bc9d2409 restructuring 16 лет назад
priv 42a9f405be minor directory cleanup 15 лет назад
reference 98ba2d9bfa added rebar support 14 лет назад
src 98ba2d9bfa added rebar support 14 лет назад
.gitignore 6d26f3f42c Added gitignore 15 лет назад
Makefile 95a6320b65 added 'doc' target to Makefile 14 лет назад
README.md 98ba2d9bfa added rebar support 14 лет назад
rebar 98ba2d9bfa added rebar support 14 лет назад
rebar.config 98ba2d9bfa added rebar support 14 лет назад

README.md

Gproc - Extended Process Dictionary for Erlang

Gproc is a process dictionary for Erlang, which provides a number of useful features beyond what the built-in dictionary has:

  • Use any term as a process alias
  • Register a process under several aliases
  • Non-unique properties can be registered simultaneously by many processes
  • QLC and match specification interface for efficient queries on the dictionary
  • Await registration, let's you wait until a process registers itself
  • Counters, and aggregated counters, which automatically maintain the total of all counters with a given name.
  • Global registry, with all the above functions applied to a network of nodes.

Gproc has a QuickCheck test suite, covering a fairly large part of the local gproc functionality, although none of the global registry. It requires a commercial EQC license, but rebar is smart enough to detect whether EQC is available, and if it isn't, the code in gproc_eqc.erl will be "defined away".

There is also an eunit suite in gproc.erl, but it covers only some of the most basic functions (local only). Lots more tests need to be written... some day. Contributions are most welcome.