[erlang-questions] Proper type for passing pointer to/from linked-in driver?
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 <> 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.
> 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?
>> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions