On Thu, Nov 4, 2010 at 2:22 PM, John Baldwin <j...@freebsd.org> wrote:
> On Thursday, November 04, 2010 4:15:16 pm Hans Petter Selasky wrote:
>> I think that if a task is currently executing, then there should be a drain
>> method for that. I.E. two methods: One to stop and one to cancel/drain. Can
>> you implement this?
>
> I agree, this would also be consistent with the callout_*() API if you had
> both "stop()" and "drain()" methods.

Here's my proposed code.  Note that this builds but is not yet tested.


Implement a taskqueue_cancel(9), to cancel a task from a queue.

Requested by:       hps
Original code:      jeff
MFC after:  1 week


http://people.freebsd.org/~mdf/bsd-taskqueue-cancel.diff

Thanks,
matthew
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to