logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSContThreadAffinitySet - TSContThreadAffinitySet API function

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)

See Also