summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/prthread.rst
blob: 7f479735f4392fec71b5b2f6d49118f38f94bf58 (plain)
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
PRThread
========

An NSPR thread.


Syntax
------

.. code::

   #include <prthread.h>

   typedef struct PRThread PRThread;


Description
~~~~~~~~~~~

In NSPR, a thread is represented by a pointer to an opaque structure of
type :ref:`PRThread`. This pointer is a required parameter for most of the
functions that operate on threads.

A ``PRThread*`` is the successful result of creating a new thread. The
identifier remains valid until it returns from its root function and, if
the thread was created joinable, is joined.