OTMP Question
OTMP Question
- Subject: OTMP Question
- From: Mal Paine <email@hidden>
- Date: Mon, 13 Jan 2003 14:58:54 -0500
I'm converting my MacOSX download manager to use OTMP instead of straight
OT. According to the OTMP docs, I must call OTMPXUnprepareThisTask before
each OTMP task terminates.
I have the following situation though: Many OTMP tasks are running
concurrently. If the user cancels the data processing, then the collection
of MP tasks is terminated. None of the OTMP tasks knows when it will be
terminated since the application thread dictates the termination. Thus, it's
impossible for each task to call OTMPXUnprepareThisTask() just before the
application task terminates the OTMP tasks.
This could easily be solved _if_ OTMP provided a function like
OTMPXUnprepareTask(MPTaskID inTask). Then, from my application thread, I
could just call OTMPXUnprepareTask(task) followed by MPTerminateTask(task,
reason).
But since OTMP doesn't provide this function, how can I correctly call
OTMPXUnprepareThisTask before task termination given that the application
thread can terminate the OTMP tasks at any time?
Thanks!
Mal
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.