lines 635-661 of file: include/cppad/utility/thread_alloc.hpp

{xrst_begin ta_thread_num}

Get the Current Thread Number
#############################

Syntax
******
*thread* = ``thread_alloc::thread_num`` ()

Purpose
*******
Some of the :ref:`thread_alloc-name` allocation routines have a thread number.
This routine enables you to determine the current thread.

thread
******
The return value *thread* has prototype

   ``size_t`` *thread*

and is the currently executing thread number.

Example
*******
:ref:`thread_alloc.cpp-name`

{xrst_end ta_thread_num}
