mach_task_self_ is not concurrency-safe because it involves shared mutable state
I have a function that returns the memory use of a device. It uses mach_task_self_
which gives a warning that it is not concurrency-safe.
I have a function that returns the memory use of a device. It uses mach_task_self_
which gives a warning that it is not concurrency-safe.