close_task
close_task — closes a task opened by
locate_task.
close_task (task)
taskA task descriptor as assigned to a
locate_task call.
When a task is opened (located) for interprocess communication, a communication link may be established. This link must be cleaned up if it is to be re-used. There is no hard limit to the number of tasks which may be open with QNX 4 message passing, but TCP/IP exerts an operating system-dependent limit on the number of simultaneously open tasks. Tasks will automatically be closed by the garbage collector when they are no longer referenced.
Gamma>task = locate_task("Task 1",nil);#<Task:9684>Gamma>close_task(task);tGamma>