• 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
Re: MPTask equivalent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPTask equivalent?


  • Subject: Re: MPTask equivalent?
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 21 Feb 2008 15:10:05 +0000
  • Thread-topic: MPTask equivalent?

>>
>> Is there a good online reference to the Cocoa equivalent of this?
>>
>> Any pointers as to how I should structure this in Cocoa?
>>
>> How much of Cocoa is thread safe?
>
> Others have given some good specific suggestions for your problem.
> For some more general info on multithreading facilities in Cocoa,
> check out the Threading Programming Guide:
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/index
> .html

One thing that I can't seem to do in Cocoa is:

MPWaitOnQueue (pTaskInfo->mSignalQueueID, (void **)
&pTaskInfo->mQueueMessage, NULL, NULL, GetBlockDuration (pTaskInfo));
if (pTaskInfo->mQueueMessage == kMapTaskSignalAbort)
{
   pTaskInfo->mAbort = true;
   break;
}

That is, to pause a task for a fixed about of time... I have a task that I
want to take 5 minutes to do so that I use very little processor time. So I
frequently block for a variable amount of time.

Can I do this with Cocoa threads?

Is there a way to mix MPTasks in Cocoa? I am really eager to use Cocoa here
as many things are much easier than in Carbon (less code), but the
task/multithreading of Cocoa seems weak.

Trygve


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MPTask equivalent?
      • From: Scott Ribe <email@hidden>
    • Re: MPTask equivalent?
      • From: j o a r <email@hidden>
    • Re: MPTask equivalent?
      • From: Trygve Inda <email@hidden>
References: 
 >Re: MPTask equivalent? (From: Adam P Jenkins <email@hidden>)

  • Prev by Date: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • Next by Date: Re: MPTask equivalent?
  • Previous by thread: Re: MPTask equivalent?
  • Next by thread: Re: MPTask equivalent?
  • Index(es):
    • Date
    • Thread