source: trunk/man/arm_bind_thread.3 @ 704

Revision 614, 2.4 KB checked in by dcarter, 4 years ago (diff)

see #111 - Build beta3

Line 
1.\" Copyright (c) 2005-2008 David Carter <dcarter@arm4.org> and others.
2.\" All rights reserved.   This program and the accompanying materials
3.\" are made available under the terms of the Eclipse Public License v1.0
4.\" which accompanies this distribution, and is available at
5.\" http://www.eclipse.org/legal/epl-v10.html
6.TH "arm_bind_thread" 3 "August 2008" "arm4.org" "ARM 4 Programmer's Manual"
7.SH NAME
8arm_bind_thread \- bind thread
9.SH SYNOPSIS
10.B #include <arm4.h>
11.sp
12\fBarm_error_t
13.br
14arm_bind_thread(
15.br
16    const arm_tran_start_handle_t \fItran_handle\fB,
17.br
18    const arm_int32_t \fIflags\fB,
19.br
20    const arm_buffer4_t *\fIbuffer4\fB);\fR
21.SH DESCRIPTION
22\fBarm_bind_thread()\fR indicates that the thread from which it is called is performing on behalf of
23the transaction identified by the start handle.
24
25The thread binding could be useful for managing computing resources at a finer level of
26granularity than a process. There can be any number of threads simultaneously bound to the
27same transaction.
28
29A transaction remains bound to a thread until either an \fBarm_discard_transaction()\fR,
30\fBarm_stop_transaction()\fR, or \fBarm_unbind_thread()\fR is executed passing the same start handle.
31
32\fBarm_bind_thread()\fR and \fBarm_block_transaction()\fR are used independently of each other.
33
34\fItran_handle\fR is a handle returned from an \fBarm_start_transaction()\fR call in the
35same process.
36
37No sub-buffer types are currently valid with this function call, so the \fIbuffer4\fR pointer should be
38null (\fBARM_BUF4_NONE\fR).
39
40No values are currently defined for \fIflags\fR. The field should be zero
41(\fBARM_FLAG_NONE\fR).
42
43.SH "RETURN VALUE"
44On success, the function returns \fBARM_SUCCESS\fR. A non-zero value indicates
45an error.
46.SH ERRORS
47If the return code is negative, an error occurred. If the return code is not negative, an error may
48or may not have occurred - the determination of what is an error and whether an error code is
49returned is at the discretion of the ARM implementation. The application can test the return code
50if it wants to provide its own error logging.
51
52This implementation returns no errors for \fBarm_bind_thread()\fR.
53.SH "CONFORMING TO"
54ARM Issue 4.0 C Language Bindings, Version 2
55.SH EXAMPLE
56None.
57.SH "SEE ALSO"
58.BR arm_unbind_thread (3),
59.BR arm_block_transaction (3),
60.BR arm_start_transaction (3),
61.BR arm_discard_transaction (3),
62.BR arm_stop_transaction (3)
Note: See TracBrowser for help on using the repository browser.