uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

set_value/3 #32

Closed l4u closed 11 years ago

l4u commented 11 years ago

There exists get_value/1 and get_value/2. Should there be a set_value/3 which accepts Key, Value, and Pid? Might be related to #17 for setting value to a shared counter, for example. gproc:set_value({c,l,wsCounter}, 100, shared).

uwiger commented 11 years ago

No, there's a set_value/2, but only the owner of the object is allowed to change the value.

uwiger commented 11 years ago

But I agree there is room for a set_shared_value/2