send_async
send_async — transmits expressions asynchronously.
send_async (task, s_exp)
taskA task descriptor as assigned to a
locate_task call.
s_expAny Gamma or Lisp expression.
This function constructs a string representation of the given expression
and delivers it via asynchronous interprocess communication to the receiving
task. If the message could not be delivered, send_async
returns nil. There is no
indication of the status of the receiving task as a result of processing the
message.
Task 1:
Gamma>init_ipc ("a","a");tGamma>tsk = locate_task("b",t);#<Task:9751>Gamma>send_async(tsk, #princ("hello, b\n"));tGamma>send_async(tsk, #princ(cos(5), "\n"));tGamma>
Task 2:
Gamma>init_ipc ("b","b");tGamma>while(t) next_event();hello, b 0.28366218546322624627