[erlang-questions] erl_driver: is char *buf from control safe?

Lukas Larsson garazdawi@REDACTED
Tue Sep 9 17:49:13 CEST 2014


On Tue, Sep 9, 2014 at 5:41 PM, Max Lapshin <max.lapshin@REDACTED> wrote:

> I send very big binary to driver:
>
> erlang:port_control(Port, 15, YUV)
>
> Can I send it's pointer buf to async thread?  Is it safe?
>

No, you want to use port_command together with driver_enq/deq+pdl to do
that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140909/ed791c3e/attachment.htm>


More information about the erlang-questions mailing list