[erlang-questions] Driver Threading & Message Sending
Benjamin Tolputt
bjt@REDACTED
Tue Sep 18 08:27:44 CEST 2007
Ulf Wiger wrote:
> If you haven't already done so, you might want to read the tutorials
> in the ERTS User's Guide, e.g. 6.5 - Sample Asynchronous Driver:
>
> http://www.erlang.org/doc/apps/erts/driver.html#6.5http://www.erlang.org/doc/apps/erts/driver.html#6.5
>
> In this example, the driver calls output_port() to send a message to
> the port owner, when there is something to report.
>
Many thanks for this. I have read and understand the "Interoperability
Tutorial" which uses the "driver_output" function, but when looking in
the documentation on this function - it did not label this funciton as
thread safe. I asked because this seemed like a pretty big "hole" given
the elegance in the rest of Erlang (i.e. I guessed I had missed something)
I will look into this, thanks.
Regards,
B.J.Tolputt
More information about the erlang-questions
mailing list