~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/pthread_globals.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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
27
 
 
28
#include <drizzled/visibility.h>
 
29
 
30
30
namespace drizzled
31
31
{
32
32
 
33
 
extern boost::mutex LOCK_global_system_variables;
34
 
 
35
33
typedef boost::unique_lock<boost::mutex>  boost_unique_lock_t;
36
34
 
37
35
typedef boost::shared_ptr<boost::thread> boost_thread_shared_ptr;
38
36
 
39
37
extern boost::condition_variable_any COND_refresh;
40
 
extern boost::condition_variable COND_thread_count;
41
 
extern boost::condition_variable COND_server_end;
 
38
extern DRIZZLED_API boost::condition_variable COND_thread_count;
42
39
extern pthread_t signal_thread;
43
40
 
44
41
} /* namespace drizzled */
45
42
 
46
 
#endif /* DRIZZLED_PTHREAD_GLOBALS_H */