[erlang-questions] Sending messages to a process from the port driver from a separate thread

Lukas Larsson <>
Wed Aug 8 11:46:07 CEST 2012


Hi!

I'm no expert on the code in question, but after a brief look in
io.c:driver_deliver_term it would seem that you can do it from not
only scheduler threads, given that you are using the SMP emulator.

Lukas

On Wed, Aug 1, 2012 at 8:47 AM, Zhemzhitsky Sergey
<> wrote:
> Hi erlang gurus,
>
>
>
> Is it legal to send messages to any erlang process by means of
> driver_send_term from a separate thread started by erl_drv_thread_create?
>
> I.e. can I send messages to the process not from the port driver callback,
> but at any time from the function specified when invoking
> erl_drv_thread_create?
>
>
>
> Best Regards,
>
> Sergey
>
>
>
> _______________________________________________________
>
>
>
> The information contained in this message may be privileged and conf
> idential and protected from disclosure. If you are not the original intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, or other use of, or taking of any action in reliance upon,
> this information is prohibited. If you have received this communication in
> error, please notify the sender immediately by replying to this message and
> delete it from your computer. Thank you for your cooperation. Troika Dialog,
> Russia.
>
> If you need assistance please contact our Contact Center (+7495) 258 0500 or
> go to www.troika.ru/eng/Contacts/system.wbp
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list