• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OTMP Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: OTMP Question
      • From: Quinn <email@hidden>
  • Prev by Date: URLAccess problems
  • Next by Date: Obvious hosts and domains for proxy bypass
  • Previous by thread: URLAccess problems
  • Next by thread: Re: OTMP Question
  • Index(es):
    • Date
    • Thread