#include <ts/ts.h>
TSThreadSelf
Return an instance of TSThread that identifies the current thread. This must be called from within a Traffic Server create thread context. That is any thread created by the Traffic Server core or via the Traffic Server API.
TSThread