~mordred/libmemcached/merge-vs-work

« back to all changes in this revision

Viewing changes to libmemcached/protocol/cache.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 18:47:03 UTC
  • Revision ID: mordred@inaugust.com-20110213184703-usxdc2h4do3bnxhx
Build for Visual Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
2
#ifndef CACHE_H
3
3
#define CACHE_H
4
 
#include <pthread.h>
 
4
 
 
5
#if defined(HAVE_PTHREAD)
 
6
# include <pthread.h>
 
7
#endif
5
8
 
6
9
#ifdef HAVE_UMEM_H
7
10
#include <umem.h>
44
47
 * undefined behavior.
45
48
 */
46
49
typedef struct {
 
50
#if defined(HAVE_PTHREAD)
47
51
    /** Mutex to protect access to the structure */
48
52
    pthread_mutex_t mutex;
 
53
#endif
49
54
    /** Name of the cache objects in this cache (provided by the caller) */
50
55
    char *name;
51
56
    /** List of pointers to available buffers in this cache */