On Thu, Nov 4, 2010 at 12:11 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
It depends on whether the queue uses a MTX_SPIN or MTX_DEF. It is not
possible to determine whether a task is running without taking the
taskqueue lock. And it is certainly impossible to dequeue a task
without the lock that was used to enqueue it.
However, a variant that dequeued if the task was still pending, and
returned failure otherwise (rather than sleeping) is definitely
possible.
Thanks,
matthew
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"