Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2019 15:12:30 +0000
From:      "Fedorov, Aleksandr" <aleksandr.fedorov@vstack.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   TASKQUEUE(9) KPI enqueue task only once
Message-ID:  <05b18f73ee054b9696d055ed40610dea@vstack.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi Hackers.

I need to enqueue task to the taskqueue only if there is no pending tasks.

I found the taskqueue_poll_is_busy() function, but the comment above indica=
tes that
it should be used only from single threaded contexts.

Is there a conventional way to do this?=



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?05b18f73ee054b9696d055ed40610dea>