Re: Yielding the processor in a kext?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=InoZSstj5ZSSvMheGQjVhylnlx0m0Mplarmh/YQ898c=; b=QUipiGHFQ60sUERAPybvIj4QNCju/DnLd2iPqjmKj2kiUq/vqsqexZnMpYIRpww2bu1OY7HZsfuEZ/lS8kGM1YrPskwRiX3jvQzhPX6tkGs2160sx8V00/FyGEvbLOxk/8rEpGwfozMFLd5+swFOEREIuS0eu5bbW1uplddbZUI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sNnHhbAqAZqfh6WxAWBLPwGIO4oUjfYEFZvGaddzVbNVRZPV4N2FUNvdMDho0yq3B5sQlbnDguLwphsKHoXijdToXcYwWsPxKuWidQx1V1sXBQcgYJhzVqy/gyk0sPy5Eg6Sh3yCZ2iGPSkmblXnh2S8zR8dUt60oFEu50IOXO4= 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 <hpreg@vmware.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- http://openspecies.googlepages.com/gpgkey.txt _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w