TSContThreadAffinitySet - TSContThreadAffinitySet API function
Contents
Copyright
2025, dev@trafficserver.apache.org
9.2 May 22, 2025 TSCONTTHREADAFFINITYSET(3ts)
Description
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.
Name
TSContThreadAffinitySet - TSContThreadAffinitySet API function
Return Values
TS_SUCCESS if thread affinity of continuation contp was set to ethread, TS_ERROR if not.
Synopsis
#include <ts/ts.h>
TSReturnCodeTSContThreadAffinitySet(TSContcontp,TSEventThreadethread)