~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.cc

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "drizzled/global_charset_info.h"
28
28
#include "drizzled/charset_info.h"
29
29
 
30
 
XID::XID()
31
 
{}
 
30
namespace drizzled
 
31
{
32
32
 
33
33
bool XID::eq(XID *xid)
34
34
{
118
118
pthread_mutex_t LOCK_xid_cache;
119
119
HASH xid_cache;
120
120
 
121
 
extern "C" unsigned char *xid_get_hash_key(const unsigned char *, size_t *, bool);
122
 
extern "C" void xid_free_hash(void *);
 
121
unsigned char *xid_get_hash_key(const unsigned char *, size_t *, bool);
 
122
void xid_free_hash(void *);
123
123
 
124
124
unsigned char *xid_get_hash_key(const unsigned char *ptr, size_t *length,
125
125
                        bool )
193
193
  hash_delete(&xid_cache, (unsigned char *)xid_state);
194
194
  pthread_mutex_unlock(&LOCK_xid_cache);
195
195
}
 
196
 
 
197
} /* namespace drizzled */