~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/pthread_globals.h

  • Committer: Mark Atwood
  • Date: 2011-10-27 05:08:12 UTC
  • mfrom: (2445.1.11 rf)
  • Revision ID: me@mark.atwood.name-20111027050812-1icvs72lb0u4xdc4
mergeĀ lp:~olafvdspek/drizzle/refactor8

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_PTHREAD_GLOBALS_H
21
 
#define DRIZZLED_PTHREAD_GLOBALS_H
 
20
#pragma once
22
21
 
23
22
#include <pthread.h>
24
 
#include <boost/thread/recursive_mutex.hpp>
25
23
#include <boost/thread/mutex.hpp>
26
24
#include <boost/thread/shared_mutex.hpp>
27
25
#include <boost/thread/condition_variable.hpp>
28
26
#include <boost/shared_ptr.hpp>
29
 
 
30
 
namespace drizzled
31
 
{
32
 
 
33
 
extern boost::mutex LOCK_global_system_variables;
34
 
 
35
 
typedef boost::unique_lock<boost::mutex>  boost_unique_lock_t;
36
 
 
37
 
typedef boost::shared_ptr<boost::thread> boost_thread_shared_ptr;
 
27
#include <drizzled/visibility.h>
 
28
 
 
29
namespace drizzled {
 
30
 
 
31
typedef boost::shared_ptr<boost::thread> thread_ptr;
38
32
 
39
33
extern boost::condition_variable_any COND_refresh;
40
 
extern boost::condition_variable COND_thread_count;
41
 
extern boost::condition_variable COND_server_end;
 
34
extern DRIZZLED_API boost::condition_variable COND_thread_count;
42
35
extern pthread_t signal_thread;
43
36
 
44
37
} /* namespace drizzled */
45
38
 
46
 
#endif /* DRIZZLED_PTHREAD_GLOBALS_H */