[erlang-questions] Gproc synchronization primitives?

Gregory Haskins gregory.haskins@REDACTED
Wed Apr 20 03:30:47 CEST 2011


On Apr 19, 2011, at 8:21 PM, Gregory Haskins wrote:
>> 
> 
> I updated and added the code, but I ran into a potentially unrelated snag before I could verify if this fixed the issue.  That is:
> 
> (agent@REDACTED)23> Pid.
> <0.73.0>
> (agent@REDACTED)24> qlc:e(qlc:q([{P, K, V} || {{p, g, {edist_fact, K}}, P, V} <- gproc:table(props), K =:= "hostname"])).
> [{<0.73.0>,"hostname","linux-mp"}]
> (agent@REDACTED)25> qlc:e(qlc:q([{P, K, V} || {{p, g, {edist_fact, K}}, P, V} <- gproc:table(props), P =:= Pid])).       
> []

It looks like "P == Pid" does in fact work.  I am not clear if the problem with using =:= is gproc, erlang/qlc, or "pilot error" specific, but that does seem the be the problem in this case.

BTW: I did in fact confirm that the sync() in v0.2.3 seems to be working fine, thanks!

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110419/0a298180/attachment.htm>


More information about the erlang-questions mailing list