/* Returns true if current thread is essential, false if it is not.  */
bool z_is_thread_essential(void)
/* Returns true if current thread is essential, false if it is not.  */
bool z_is_thread_essential(void)
{
	return (_current->base.user_options & K_ESSENTIAL) == K_ESSENTIAL;
}