cxboolean FLUID_THREAD_P(t);
You can use FLUID_THREAD_P to check whether a cell thread is a
fluid thread. The macro is passed a cell thread pointer t, and
returns 1 (or TRUE) if the thread that is
passed is a fluid thread, and 0 (or FALSE)
if it is not.
Note that FLUID_THREAD_P(t) assumes that the thread is a cell
thread.
For example,
FLUID_THREAD_P(t0);
returns TRUE if the thread pointer t0
passed as an argument represents a fluid thread.