On 8/27/25 9:06 AM, Alex Gaynor wrote:
I'm not positive, but during cryptography's startup we use
`std::thread::available_parallelism()` in Rust to get the number of
cores for various things, and I suspect it is accessing the cgroups
configuration to know if the process has limited threads.

If you wanted to really verify this, you could write a rust program
that just called `std::thread::available_parallelism()` and verify if
it shows the same behavior.

No need to write a program.  gdb shows that your supposition is correct.

Seems like this is something that should be allowed by the policy.

Thanks!

--
========================================================================
If your user interface is intuitive in retrospect ... it isn't intuitive
========================================================================
_______________________________________________
Cryptography-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/cryptography-dev.python.org
Member address: [email protected]

Reply via email to