Re: MPTask equivalent?
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