]> err.no Git - varnish/commit
Retire sessions if the workspace size changes, properly cache the
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 17:32:41 +0000 (17:32 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 17:32:41 +0000 (17:32 +0000)
commit5194d97d72e4d4c4737ff304c7b6ea4134e242b0
treed83d91156fe8ed71a6d01b7280e5c8cf096ccadf
parent98d5322a04a931e9fac2746bb7d2977294e76d5e
Retire sessions if the workspace size changes, properly cache the
workspace size so we do not get caught unaware when it changes.

Implement flip-flop free queue where SES_New() can read from
one of them without a lock, which frees happen to the other one
under lock.  If the lock-less queue is empty, SES_New() flips
the two queues under lock and tries again.  If that queue is
also empty call malloc(3).

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@873 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_session.c