summaryrefslogtreecommitdiffstats
path: root/posix1003_1/thread_managment.rst
blob: db364858f95656eeb9f313d687743c8975d684c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Thread Management
#################

Threads
=======

Thread Functions
================

Thread Creation Attributes
--------------------------

.. code:: c

    pthread_attr_init(), Function, Implemented
    pthread_attr_destroy(), Function, Implemented
    pthread_attr_setstacksize(), Function, Implemented
    pthread_attr_getstacksize(), Function, Implemented
    pthread_attr_setstackaddr(), Function, Implemented
    pthread_attr_getstackaddr(), Function, Implemented
    pthread_attr_setdetachstate(), Function, Implemented
    pthread_attr_getdetachstate(), Function, Implemented
    PTHREAD_CREATE_JOINABLE, Constant, Implemented
    PTHREAD_CREATE_DETACHED, Constant, Implemented

Thread Creation
---------------

.. code:: c

    pthread_create(), Function, Implemented

Wait for Thread Termination
---------------------------

.. code:: c

    pthread_join(), Function, Implemented

Detaching a Thread
------------------

.. code:: c

    pthread_detach(), Function, Implemented

Thread Termination
------------------

.. code:: c

    pthread_exit(), Function, Implemented

Get Thread ID
-------------

.. code:: c

    pthread_self(), Function, Implemented

Compare Thread IDs
------------------

.. code:: c

    pthread_equal(), Function, Implemented

Dynamic Package Initialization
------------------------------

.. code:: c

    pthread_once(), Function, Implemented
    PTHREAD_ONCE_INIT, Constant, Implemented

.. COMMENT: COPYRIGHT (c) 1988-2002.

.. COMMENT: On-Line Applications Research Corporation (OAR).

.. COMMENT: All rights reserved.