[erlang-questions] What is the proper way of sending messages to pid from enif thread?
Loïc Hoguin
essen@REDACTED
Wed Jul 8 11:21:06 CEST 2015
I have something like this here:
https://github.com/ninenines/esdl2/blob/master/c_src/nif_helpers.c#L102
nif_helpers.c and .h are utility functions I built allowing you to setup
and use a separate thread and communicate with it using casts and calls
(the C code just returns the message to be sent back, if any).
On 07/08/2015 11:11 AM, Max Lapshin wrote:
> Sergej, can you share a snippet of how do you do the sending from a
> separate thread?
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
--
Loïc Hoguin
http://ninenines.eu
Author of The Erlanger Playbook,
A book about software development using Erlang
More information about the erlang-questions
mailing list