I believe the point that Apple's docs are making is that you cannot use pthread_setspecific
to set a value and then expect it to be available in threadDictionary
. I wouldn't expect them to directly interfere with each other; they're just separate.
That said, if this is iOS-specific code, then the strongly preferred way to manage this is with GCD rather than POSIX threads. GCD offers the equivalent of TLS in the form of dispatch_get_specific
, dispatch_queue_get_specific
and dispatch_queue_set_specific
. But it also provides much better thread management than POSIX threads.