noble (3) TSContThreadAffinitySet.3ts.gz

Provided by: trafficserver-dev_9.2.3+ds-1+deb12u1build4_amd64 bug

NAME

       TSContThreadAffinitySet - TSContThreadAffinitySet API function

SYNOPSIS

          #include <ts/ts.h>

       TSReturnCode TSContThreadAffinitySet(TSCont contp, TSEventThread ethread)

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.

RETURN VALUES

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

       2024, dev@trafficserver.apache.org