Foundation Thread exhaustion on Linux

(Joe Bell) #1


I've opened against Thread (NSThread)
in Foundation. I noticed several weeks ago while working with it on a
Raspberry Pi 3 that Thread.start() eventually doesn't actually start a
thread. This was found a lot faster on the Pi 3 than on a largish x86

Anyone familiar with the Thread.swift implementation in, I'd love your
assessment of whether my code (in SR-1908) is correct or whether I'm
missing a crucial call to free up resources. I thought Thread.exit() would
do this for me.



Joseph Bell