possibly OT: threadsafe libc
possibly OT: threadsafe libc
- Subject: possibly OT: threadsafe libc
- From: Philip Lukidis <email@hidden>
- Date: Mon, 21 Nov 2005 10:03:17 -0500
Hello. I was wondering if there was a fully threadsafe libc version which I
can use. I'll be using pthreads and was hoping there would be an easy way
to know which libraries are threadsafe or not.
Does Apple formally specify which functions in libc are threadsafe? I have
heard that several libc functions have a _r version, but was hoping that
there would be a fully threadsafe library which I can link to. For example,
sprintf does not have a _r version...does that mean I have to wrap sprintf
calls with a mutex? I would assume not, but this would be my intuition
speaking and not a formal written declaration by Apple on which
libraries/calls are threadsafe.
So, how to absolutely know if a libc call is threadsafe?
thanks,
Philip Lukidis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden