On Thu, 22 Aug 2002, Kristian Koehntopp wrote:

> Am Donnerstag, 22. August 2002 09:43 schrieb Rasmus Lerdorf:
> > Putting in locks is the easy part.  The tough part is finding
> > which libraries are safe and which ones aren't.
>
> I think that is easy, too. Either the library you are using is
> being documented as threadsafe, then it is. Or it isn't
> documented as threasdsafe, in which case you have to mutex it,
> even if it is actually threadsafe internally - no docs for it,
> the feature is an accident and you may not rely on it. Talk to
> the developers and make them cooperate.

That's not very realistic I don't think. You have folks like Mr. Crispin
who insists that his c-client library is perfectly threadsafe yet he uses
strtok() and gethostbyname() so it obviously isn't.

-Rasmus


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to