polling problem
henkbijker78@REDACTED
henkbijker78@REDACTED
Fri Apr 4 10:02:53 CEST 2003
Hi all,
I've written a c Node to communicate between erlang and another server,
which I need to poll in intervals of 500ms. Now the problem I have if when
you call the "erl_receive_msg", it takes about 15 seconds for a 'ERL_TICK'
to occur, so I thought about spawning a process to cause the ticks in 500ms
intervals.
In my loop() -> I have the following.
after 500 ->
io:format("~nOk"),
{ok, c1@REDACTED}!{self()} ,
loop()
if I call "{ok, c1@REDACTED}!{self()} ." from BEAM emulator, it executes
and I can see the response in my c code, but it doesn't execute within the
loop functions, although I do see the 'Ok'.
Any idea why?
More information about the erlang-questions
mailing list