~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/pthread_globals.h

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

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
23
#include <boost/thread/mutex.hpp>
25
24
#include <boost/thread/shared_mutex.hpp>
26
25
#include <boost/thread/condition_variable.hpp>
27
26
#include <boost/shared_ptr.hpp>
28
 
 
29
27
#include <drizzled/visibility.h>
30
28
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
typedef boost::unique_lock<boost::mutex>  boost_unique_lock_t;
35
 
 
36
 
typedef boost::shared_ptr<boost::thread> boost_thread_shared_ptr;
 
29
namespace drizzled {
 
30
 
 
31
typedef boost::shared_ptr<boost::thread> thread_ptr;
37
32
 
38
33
extern boost::condition_variable_any COND_refresh;
39
34
extern DRIZZLED_API boost::condition_variable COND_thread_count;
41
36
 
42
37
} /* namespace drizzled */
43
38
 
44
 
#endif /* DRIZZLED_PTHREAD_GLOBALS_H */