.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSCONTTHREADAFFINITYSET" "3ts" "Nov 02, 2023" "9.2" "Apache Traffic Server" .SH NAME TSContThreadAffinitySet \- TSContThreadAffinitySet API function .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSContThreadAffinitySet(\fI\%TSCont\fP contp, \fI\%TSEventThread\fP ethread) .UNINDENT .SH DESCRIPTION .sp Set the thread affinity of continuation \fIcontp\fP to \fIethread\fP\&. Future calls to \fI\%TSContSchedule()\fP, and \fI\%TSContScheduleOnPool()\fP that has the same type as \fIethread\fP will schedule the continuation on \fIethread\fP, rather than an arbitrary thread of that type. .sp \fI\%TSContSchedule()\fP and \fI\%TSContScheduleEvery()\fP will default the affinity to calling thread when invoked without explicitly setting the thread affinity. .SH RETURN VALUES .sp \fI\%TS_SUCCESS\fP if thread affinity of continuation \fIcontp\fP was set to \fIethread\fP, \fI\%TS_ERROR\fP if not. .SH COPYRIGHT 2023, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .