summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_joinjob.rst
blob: 1153cd9dcf0f0602a4d8124b8df76143a1a49197 (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
27
28
29
30
PR_JoinJob
==========

Blocks the current thread until a job has completed.


Syntax
------

.. code::

   #include <prtpool.h>

   NSPR_API(PRStatus) PR_JoinJob(PRJob *job);


Parameter
~~~~~~~~~

The function has the following parameter:

``job``
   A pointer to a :ref:`PRJob` structure returned by a :ref:`PR_QueueJob`
   function representing the job to be cancelled.


Returns
~~~~~~~

:ref:`PRStatus`