[hunchentoot-devel] thread safety in session-value

Anton Vodonosov avodonosov at yandex.ru
Thu Sep 4 22:46:48 UTC 2008


on Friday, September 5, 2008, 12:14:59 AM Edi wrote:

> In this case, you don't want to use a global lock, though, and I
> wonder how expensive it is to have one lock per session.  I have to
> think about this a bit...

One per session is better IMO; lock in the worst case is several bytes +
maybe a string if you will provide a name - quite cheap.

Best regards,
-Anton




More information about the Tbnl-devel mailing list