On Apr 17, 2006, at 6:37 PM, Andrew Piskorski wrote:

On Mon, Apr 17, 2006 at 10:47:45AM +0100, John Buckman wrote:

ns_cache creates a per-thread global, which is not quite the same
thing, as sometimes the same thread will use a different interpreter.

Hm, under what circumstances have you seen one AOLserver thread use a
different Tcl interpreter?  I wasn't aware that ever happened in
AOLserver, at least not without taking explicit and unusual steps to
make it happen (e.g., perhaps via the "interp create" Tcl command).

No, I think I was wrong, and you're right. I was trying to make berkeleydb's tcl library work, and it was losing state within the driver.

Now, it turns out that berkeleydb's tcl library is not thread safe, and that was the cause of my problem.

-john


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to