Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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