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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05b18f73ee054b9696d055ed40610dea>