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=gamma; h=domainkey-signature:received:received:from:to:cc:references:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:x-mimeole:in-reply-to; bh=Ff85z0tIXsLGP+wdJUKZxkQxJdvKgXADCg10spRcdsw=; b=q45/GKTbZePvF4YxlpjDKYa8whre/+7qr3H/MfUGi7K055y6sODo8tl4GbI21GAJoL/7hNhCRRUMyZVmqUrompmlBKddId8MMPLySoygtpQbxdE9jBHI/9V4Cwa2W+ncuEUTeQWyDRUVsW1ajaz/rJ4tmWxZuIzeyU70DLcicTg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:x-mimeole:in-reply-to; b=kVKMPv07gsIyFScN4E9hxB2zXVWMtauoJb0APiTYnkZz4/A4zxHTQVTBzHTCWf2Ype7K4fQ5SYiSgPrai2yyBCyt+fIiTMDAmUL/B3ecakIbtg/gumUTFxbDTDLeCtdQNm/JXmhHvdkWqLwaE5T2szvF6frQRMr/lRn8evCora0= Thread-index: Acg7evfUCdPiJUBpTmKsfSQyj1aeEwAOOaBg Hi
How are you assuring that the thread wasn't already awoken and already terminated itself (in case of a process termination, system shutdown, etc...) I didn't find any function for getting thread state (like sleeping). For now I just do a proc_find() and assume true return value = thread sleeping (bad assumption). Please suggest alternative???
More importantly, are you really intending to wake the thread from any wait it might be performing - even ones unrelated to the condition that (you think) the thread might be waiting on? It is always better to post the specific condition than to try and determine and then blast a particular thread. I dropped wait_queue/clear_wait(). Now I use msleep()/thread_wakeup_prim() so that I wake up thread sleeping on particular condition.
Thanks vishal _______________________________________________ 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)
-
Vishal Shetye