~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/heap_priv.h

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
/* This file is included in all heap-files */
17
 
#ifndef PLUGIN_MEMORY_HEAP_PRIV_H
18
 
#define PLUGIN_MEMORY_HEAP_PRIV_H
 
17
#pragma once
19
18
 
20
 
#include "config.h"
 
19
#include <config.h>
21
20
#include <drizzled/base.h>
22
21
 
23
 
#include "drizzled/internal/my_sys.h"
24
 
#include "drizzled/charset_info.h"
25
 
#include "drizzled/internal/my_pthread.h"
26
22
#include "heap.h"                       /* Structs & some defines */
27
 
#include "drizzled/tree.h"
 
23
 
28
24
#include <list>
29
25
 
30
 
#include <boost/thread/mutex.hpp>
 
26
 
 
27
namespace boost {
 
28
  class mutex;
 
29
}
31
30
 
32
31
/*
33
32
  When allocating keys /rows in the internal block structure, do it
39
38
 
40
39
#define CHUNK_STATUS_DELETED 0    /* this chunk has been deleted and can be reused */
41
40
#define CHUNK_STATUS_ACTIVE  1    /* this chunk represents the first part of a live record */
42
 
#define CHUNK_STATUS_LINKED  2    /* this chunk is a continuation from another chunk (part of chunkset) */
43
41
 
44
42
        /* Some extern variables */
45
43
 
56
54
 
57
55
#define get_chunk_status(info,ptr) (ptr[(info)->offset_status])
58
56
 
59
 
#define get_chunk_count(info,rec_length) ((rec_length + (info)->chunk_dataspace_length - 1) / (info)->chunk_dataspace_length)
60
 
 
61
57
typedef struct st_hp_hash_info
62
58
{
63
59
  struct st_hp_hash_info *next_key;
107
103
 
108
104
extern boost::mutex THR_LOCK_heap;
109
105
 
110
 
#endif /* PLUGIN_MEMORY_HEAP_PRIV_H */