Deleted Added
full compact
taskqueue.9 (146412) taskqueue.9 (147398)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 2000 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/share/man/man9/taskqueue.9 146412 2005-05-19 18:31:42Z glebius $
29.\" $FreeBSD: head/share/man/man9/taskqueue.9 147398 2005-06-15 13:31:23Z ru $
30.\"
31.Dd May 19, 2005
32.Dt TASKQUEUE 9
33.Os
34.Sh NAME
35.Nm taskqueue
36.Nd asynchronous task execution
37.Sh SYNOPSIS

--- 118 unchanged lines hidden (view full) ---

156.Va ta_func
157from the task structure is called with the value of the field
158.Va ta_context
159as its first argument
160and the value of
161.Va ta_pending
162as its second argument.
163.Pp
30.\"
31.Dd May 19, 2005
32.Dt TASKQUEUE 9
33.Os
34.Sh NAME
35.Nm taskqueue
36.Nd asynchronous task execution
37.Sh SYNOPSIS

--- 118 unchanged lines hidden (view full) ---

156.Va ta_func
157from the task structure is called with the value of the field
158.Va ta_context
159as its first argument
160and the value of
161.Va ta_pending
162as its second argument.
163.Pp
164The
164The
165.Fn taskqueue_drain
166function is used to wait for the task to finish.
167There is no guarantee that the task will not be
168enqueued after call to
169.Fn taskqueue_drain .
170.Pp
171A convenience macro,
172.Fn TASK_INIT "task" "priority" "func" "context"

--- 125 unchanged lines hidden ---
165.Fn taskqueue_drain
166function is used to wait for the task to finish.
167There is no guarantee that the task will not be
168enqueued after call to
169.Fn taskqueue_drain .
170.Pp
171A convenience macro,
172.Fn TASK_INIT "task" "priority" "func" "context"

--- 125 unchanged lines hidden ---