~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_pthread.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-13 15:08:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110813150814-x12xd0c230a9bgtb
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
 
 
19
 
 
20
18
#pragma once
21
19
 
22
20
#include <unistd.h>
23
 
 
24
21
#include <boost/date_time.hpp>
25
22
 
26
23
#ifndef ETIME
40
37
 
41
38
#include <drizzled/visibility.h>
42
39
 
43
 
namespace drizzled
44
 
{
45
 
namespace internal
46
 
{
 
40
namespace drizzled {
 
41
namespace internal {
47
42
 
48
43
#if !defined(HAVE_PTHREAD_YIELD_ONE_ARG) && !defined(HAVE_PTHREAD_YIELD_ZERO_ARG)
49
44
/* no pthread_yield() available */
103
98
#define ESRCH 1
104
99
#endif
105
100
 
106
 
extern void my_thread_global_init();
107
101
DRIZZLED_API void my_thread_init();
108
 
extern const char *my_thread_name();
109
 
 
110
 
/* All thread specific variables are in the following struct */
111
 
 
112
 
/**
113
 
  A default thread stack size of zero means that we are going to use
114
 
  the OS defined thread stack size (this varies from OS to OS).
115
 
 */
116
 
#define DEFAULT_THREAD_STACK    0
117
102
 
118
103
} /* namespace internal */
119
104
} /* namespace drizzled */