~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/heap_priv.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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
 
#pragma once
 
17
#ifndef PLUGIN_MEMORY_HEAP_PRIV_H
 
18
#define PLUGIN_MEMORY_HEAP_PRIV_H
18
19
 
19
 
#include <config.h>
 
20
#include "config.h"
20
21
#include <drizzled/base.h>
21
22
 
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/charset_info.h"
 
25
#include "drizzled/internal/my_pthread.h"
22
26
#include "heap.h"                       /* Structs & some defines */
23
 
 
 
27
#include "drizzled/tree.h"
24
28
#include <list>
25
29
 
26
 
 
27
 
namespace boost {
28
 
  class mutex;
29
 
}
 
30
#include <boost/thread/mutex.hpp>
30
31
 
31
32
/*
32
33
  When allocating keys /rows in the internal block structure, do it
38
39
 
39
40
#define CHUNK_STATUS_DELETED 0    /* this chunk has been deleted and can be reused */
40
41
#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) */
41
43
 
42
44
        /* Some extern variables */
43
45
 
54
56
 
55
57
#define get_chunk_status(info,ptr) (ptr[(info)->offset_status])
56
58
 
 
59
#define get_chunk_count(info,rec_length) ((rec_length + (info)->chunk_dataspace_length - 1) / (info)->chunk_dataspace_length)
 
60
 
57
61
typedef struct st_hp_hash_info
58
62
{
59
63
  struct st_hp_hash_info *next_key;
103
107
 
104
108
extern boost::mutex THR_LOCK_heap;
105
109
 
 
110
#endif /* PLUGIN_MEMORY_HEAP_PRIV_H */