It seems to be impossible to reset a shared counter with the function gproc:reset_counter/1. By looking at the source code, you seems to used the self() in the ETS key. In the case of shared counter I do not think the self() is part of the key...
If I do the same operation as in the module (read and write) then everything works as expected.
It seems to be impossible to reset a shared counter with the function gproc:reset_counter/1. By looking at the source code, you seems to used the self() in the ETS key. In the case of shared counter I do not think the self() is part of the key...
If I do the same operation as in the module (read and write) then everything works as expected.
This is the relevent stack trace information: