TASKQUEUE(9) KPI enqueue task only once

Fedorov, Aleksandr aleksandr.fedorov at vstack.com
Thu May 2 15:12:41 UTC 2019


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 indicates that
it should be used only from single threaded contexts.

Is there a conventional way to do this?


More information about the freebsd-hackers mailing list