Re: Yielding the processor in a kext?
Re: Yielding the processor in a kext?
- Subject: Re: Yielding the processor in a kext?
- From: "mm w" <email@hidden>
- Date: Fri, 7 Sep 2007 14:49:15 +0200
it seems that you want to delay execution which execution (main thread) ?
you can use timer, maybe IOTimerEventSource.h or IODelay,
maybe mach/task.h and osfmk/mach/semaphore.h are your friends
- mm w cheers!
On 9/7/07, Régis Duchesne <email@hidden> wrote:
> Folks,
>
> Is there a way to make the current thread yield the processor in a kext?
>
> I understand that by default threads executing in the kernel are
> pre-emptable, but sometimes I would like the current thread to
> explicitly give the scheduler a chance to schedule another thread,
> before the current thread's timeslice has elapsed. I'm looking for
> something similar to cond_resched() on Linux.
>
> Thanks,
> --
> hpreg
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
http://openspecies.googlepages.com/gpgkey.txt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden