Replying to myself. gcsafe is needed because otherwise a global variable could be collected by multiple threads.
Is there a way to mark an object as immutable and impossible to collect so it could be shared between threads ?
Replying to myself. gcsafe is needed because otherwise a global variable could be collected by multiple threads.
Is there a way to mark an object as immutable and impossible to collect so it could be shared between threads ?