[erlang-questions] writing a linked in driver by hand or using a tool.
Paul Davis
paul.joseph.davis@REDACTED
Tue Aug 10 18:00:15 CEST 2010
On Tue, Aug 10, 2010 at 9:20 AM, Max Lapshin <max.lapshin@REDACTED> wrote:
> On Tue, Aug 10, 2010 at 4:44 PM, Rapsey <rapsey@REDACTED> wrote:
>> R14 added support for sending messages from a NIF thread to an erlang
>> process.
>>
>
> But what convenient way of sending messages into NIF thread?
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
NIF's allow you to create threads. So you can just create a worker
thread when the NIF is loaded. When calling a NIF function from
Erlang, you just push the request onto a queue for the thread and let
the thread handle it and send the response back to the requesting pid.
More information about the erlang-questions
mailing list