~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_pthread.h

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Defines to make different thread packages compatible */
17
17
 
18
 
#ifndef DRIZZLED_INTERNAL_MY_PTHREAD_H
19
 
#define DRIZZLED_INTERNAL_MY_PTHREAD_H
 
18
 
 
19
 
 
20
#pragma once
20
21
 
21
22
#include <unistd.h>
22
23
 
37
38
#include <synch.h>
38
39
#endif
39
40
 
 
41
#include <drizzled/visibility.h>
 
42
 
40
43
namespace drizzled
41
44
{
42
45
namespace internal
106
109
 
107
110
extern bool my_thread_global_init(void);
108
111
extern void my_thread_global_end(void);
109
 
extern bool my_thread_init(void);
110
 
extern void my_thread_end(void);
 
112
DRIZZLED_API bool my_thread_init(void);
 
113
DRIZZLED_API void my_thread_end(void);
111
114
extern const char *my_thread_name(void);
112
115
 
113
116
/* All thread specific variables are in the following struct */
121
124
} /* namespace internal */
122
125
} /* namespace drizzled */
123
126
 
124
 
#endif /* DRIZZLED_INTERNAL_MY_PTHREAD_H */