[erlang-questions] Proper type for passing pointer to/from linked-in driver?

Joel Meyer <>
Fri Aug 12 00:22:04 CEST 2011


Thanks Sergej. I'll look at the NIF spec again. I'm making heavy use of the
async thread pool to avoid blocking a scheduler thread, I don't recall
seeing a similar pool available for NIFs, but I may have missed it.

Joel

On Wed, Aug 10, 2011 at 10:34 PM, Rapsey <> wrote:

> That's how I did it in my old driver. Then I switched to a NIF and life was
> so much easier with resources. You should think about using a NIF instead of
> a driver.
>
>
> Sergej
>
> On Thu, Aug 11, 2011 at 1:42 AM, Joel Meyer <> wrote:
>
>> What's the recommended way to pass a pointer between a linked-in driver
>> and the beam? I can cast it to a uint64_t and use ErlDrvUInt64 (and do the
>> reverse when sending it back to the driver), but maybe there's a better way?
>>
>> Thanks,
>> Joel
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110811/aa387ffc/attachment.html>


More information about the erlang-questions mailing list