Technically there should be an atomic and nonatomic set type, but perf should be the same, as the nonatomic one would only be used when setting the sched_affinity.