~ubuntu-branches/ubuntu/saucy/varnish/saucy

« back to all changes in this revision

Viewing changes to lib/libvarnish/vmb.c

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "libvarnish.h"
31
31
#include "vmb.h"
32
32
 
 
33
#ifdef VMB_NEEDS_PTHREAD_WORKAROUND_THIS_IS_BAD_FOR_PERFORMANCE
 
34
 
33
35
static pthread_mutex_t  mb_mtx;
34
36
static pthread_once_t   mb_mtx_once = PTHREAD_ONCE_INIT;
35
37
 
50
52
        AZ(pthread_mutex_lock(&mb_mtx));
51
53
        AZ(pthread_mutex_unlock(&mb_mtx));
52
54
}
 
55
 
 
56
#endif