• 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:14:38 +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/inde>>
x
>> .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;
> }
>

Just a follow up... The key here is that Carbon MPTasks allow a message to
be passed around for thread semaphore control... Actually Cocoa seems to not
allow any semaphore control at all.

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

References: 
 >Re: MPTask equivalent? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: MPTask equivalent?
  • Next by Date: Re: MPTask equivalent?
  • Previous by thread: Re: MPTask equivalent?
  • Next by thread: Re: MPTask equivalent?
  • Index(es):
    • Date
    • Thread