From 6c26f4fcc96a65d541f7b4f71c26561355f3b0e9 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Jul 2006 18:03:44 +0000 Subject: [PATCH] Close race condition git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@286 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_expire.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.39.5