From: phk Date: Mon, 3 Jul 2006 18:03:44 +0000 (+0000) Subject: Close race condition X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c26f4fcc96a65d541f7b4f71c26561355f3b0e9;p=varnish Close race condition git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@286 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_expire.c b/varnish-cache/bin/varnishd/cache_expire.c index 522addcd..be50b0ee 100644 --- a/varnish-cache/bin/varnishd/cache_expire.c +++ b/varnish-cache/bin/varnishd/cache_expire.c @@ -139,8 +139,8 @@ EXP_Init(void) { AZ(pthread_mutex_init(&exp_mtx, NULL)); - AZ(pthread_create(&exp_thread, NULL, exp_prefetch, NULL)); - AZ(pthread_create(&exp_thread, NULL, exp_hangman, NULL)); exp_heap = binheap_new(NULL, object_cmp, object_update); assert(exp_heap != NULL); + AZ(pthread_create(&exp_thread, NULL, exp_prefetch, NULL)); + AZ(pthread_create(&exp_thread, NULL, exp_hangman, NULL)); }