% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/affinity.R
\name{set_affinity}
\alias{set_affinity}
\title{Set CPU affinity for the current process}
\usage{
set_affinity(cores)
}
\arguments{
\item{cores}{Integer vector of 0-based CPU core ids.}
}
\value{
A logical scalar; \code{TRUE} on success, \code{FALSE} if not supported.
}
\description{
Intended to be called inside a worker process (e.g., via \code{clusterCall()}).
On unsupported platforms, returns FALSE.
}
\examples{
affinity_supported()
}
