|
From: | Bruce Butterfield |
Subject: | Re: [Chicken-users] ssax egg |
Date: | Mon, 17 May 2004 15:41:01 -0700 |
User-agent: | Mozilla Thunderbird 0.6 (X11/20040509) |
Yes, I think that a library should be by default thread-safe unless marked otherwise in an obvious way. This has bitten me more than once since I write a lot of threaded code.
felix wrote:
Well, not really clever, but you can check the list in the variable ##sys#features for containing #:srfi-18. If that is the case, then you are either running in the interpreter, or in compiled code that uses the SRFI-18 features, and as such is likely to use threading. But that does of course not necessarily mean SSAX has to be reentrant. Perhaps a runtime-switch? (I would prefer the default to be thread-safe,though). cheers, felix
-- Patriotism is your conviction that this country is superior to all others because you were born in it. George Bernard Shaw
[Prev in Thread] | Current Thread | [Next in Thread] |