DOKK / manpages / debian 12 / trafficserver-dev / TSContThreadAffinitySet.3ts.en
TSCONTTHREADAFFINITYSET(3ts) Apache Traffic Server TSCONTTHREADAFFINITYSET(3ts)

TSContThreadAffinitySet - TSContThreadAffinitySet API function

#include <ts/ts.h>



Set the thread affinity of continuation contp to ethread. Future calls to TSContSchedule(), and TSContScheduleOnPool() that has the same type as ethread will schedule the continuation on ethread, rather than an arbitrary thread of that type.

TSContSchedule() and TSContScheduleEvery() will default the affinity to calling thread when invoked without explicitly setting the thread affinity.

TS_SUCCESS if thread affinity of continuation contp was set to ethread, TS_ERROR if not.

2023, dev@trafficserver.apache.org

November 2, 2023 9.2