~ubuntu-branches/ubuntu/lucid/varnish/lucid-updates

« back to all changes in this revision

Viewing changes to bin/varnishd/cache_lck.c

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*-
2
 
 * Copyright (c) 2008 Linpro AS
 
2
 * Copyright (c) 2008-2009 Linpro AS
3
3
 * All rights reserved.
4
4
 *
5
5
 * Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
25
25
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26
26
 * SUCH DAMAGE.
27
27
 *
28
 
 * $Id$
29
 
 *
30
28
 * The geniuses who came up with pthreads did not think operations like
31
29
 * pthread_assert_mutex_held() were important enough to include them in
32
30
 * the API.
37
35
 
38
36
#include "config.h"
39
37
 
 
38
#include "svnid.h"
 
39
SVNID("$Id: cache_lck.c 4599 2010-03-01 11:20:21Z phk $")
 
40
 
40
41
#include <stdio.h>
41
42
 
42
43
#include <pthread.h>
48
49
#include "shmlog.h"
49
50
#include "cache.h"
50
51
 
 
52
/*The constability of lck depends on platform pthreads implementation */
 
53
/*lint -save -esym(818,lck) */
 
54
 
51
55
struct ilck {
52
56
        unsigned                magic;
53
57
#define ILCK_MAGIC              0x7b86c8a5
190
194
 
191
195
        AZ(pthread_mutex_init(&lck_mtx, NULL));
192
196
}
 
197
 
 
198
/*lint -restore */