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