driver_control and blocking process
Bjorn Gustavsson
bjorn@REDACTED
Tue Aug 23 08:59:55 CEST 2005
It will block the VM.
You must use driver_select() to arrange for your driver to
be called when somemthing happens with a file descriptor.
(If you don't have a file descriptor, the standard trick is
to create a pipe and pass the read end to driver to driver_select().)
/Bjorn
Eric Merritt <cyberlync@REDACTED> writes:
> Guys,
>
> I am working up a linked in driver using control that may block
> waiting for external events. Control seemed to be the easiest to
> implement by far. However, I h ave a worry that this will block the vm
> as a whole. I thought it might be a good idea to ask the experts.
>
> Thanks,
> Eric
>
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list