<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 9, 2014 at 5:41 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I send very big binary to driver:<div><br></div><div>erlang:port_control(Port, 15, YUV)</div><div><br></div><div>Can I send it's pointer buf to async thread?  Is it safe?</div></div></blockquote><div> </div><div>No, you want to use port_command together with driver_enq/deq+pdl to do that. </div><div><br></div></div></div></div>