On 10.11.21 18:52, Michal Koutný wrote:
On Wed, Nov 10, 2021 at 05:15:41PM +0100, Jan Kiszka jan.kiszka@siemens.com wrote:
Is there pthread_attr_setcgroup_np()?
If I'm not mistaken the 'p' in pthreads stands for POSIX and cgroups are Linux specific so you won't find that (unless you implement that yourself). ¯_(ツ)_/¯
I know what it stands for :). But I don't want to re-implement pthreads just to have a single creation-time configurable injected. Neither would developer of standard application, e.g. libvirt for the rt-kvm special case while most of their use cases are fine with regular pthread APIs. I think there is also a demand for a programming model that fits into existing ones.
Jan