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

Joel Meyer joel.meyer@REDACTED
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.


On Wed, Aug 10, 2011 at 10:34 PM, Rapsey <rapsey@REDACTED> 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 <joel.meyer@REDACTED> 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
>> erlang-questions@REDACTED
>> 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.htm>

More information about the erlang-questions mailing list