.. _post:

The :literal:`ThreadHint` parameter can be used to request, but not guarantee, that a task executes on a particular thread.
The value passed should be the integer index in range [0..ThreadCount) of the thread in that executor.
You can retrieve the current thread index using :literal_ref:`tmc::current_thread_index()<current_thread_index>`.

tmc::post()
----------------------------------------

.. doxygenfunction:: tmc::post(E&& Executor, TaskOrFunc&& Work, size_t Priority, size_t ThreadHint)

.. _current_thread_index:

.. doxygenfunction:: tmc::current_thread_index()
