Date: Wed, 29 Apr 2015 02:26:13 +0300 From: Stefan Andritoiu <stefan.andritoiu@gmail.com> To: freebsd-virtualization@freebsd.org Subject: How to tell if current running thread can be preempted? Message-ID: <CAO3d8=aZezp%2B1MgJJFtCeb0GpTeZNwoWOW7iK0bQzaTktkZHwA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
In Linux, in the scheduler function, it check if(!preempt_count() & PREEMPT_ACTIVE). How does the ULE scheduler tell if it can preempt the current thread? Is there an equivalent to the preempt_count() function and the PREEMPT_ACTIVE macro? Also, can this information, of a current thread running inside a FreeBSD virtual machine on bhyve, be accessed from the host?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO3d8=aZezp%2B1MgJJFtCeb0GpTeZNwoWOW7iK0bQzaTktkZHwA>