~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/thr_lock.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 14:32:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328143236-4ge1d793iqaktfq0
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* For use with thr_locks */
17
17
 
18
 
#ifndef DRIZZLED_THR_LOCK_H
19
 
#define DRIZZLED_THR_LOCK_H
 
18
#pragma once
20
19
 
21
20
#include <boost/thread/mutex.hpp>
22
21
#include <boost/thread/shared_mutex.hpp>
23
22
#include <boost/thread/condition_variable.hpp>
24
23
 
 
24
#include <drizzled/visibility.h>
 
25
 
25
26
namespace drizzled
26
27
{
27
28
 
104
105
struct THR_LOCK;
105
106
struct THR_LOCK_DATA;
106
107
 
107
 
struct THR_LOCK_DATA {
 
108
struct DRIZZLED_API THR_LOCK_DATA {
108
109
  THR_LOCK_OWNER *owner;
109
110
  struct THR_LOCK_DATA *next,**prev;
110
111
  struct THR_LOCK *lock;
185
186
class Session; 
186
187
 
187
188
#define thr_lock_owner_init(owner, info_arg) (owner)->info= (info_arg)
188
 
void thr_lock_init(THR_LOCK *lock);
 
189
DRIZZLED_API void thr_lock_init(THR_LOCK *lock);
189
190
enum enum_thr_lock_result thr_multi_lock(Session &session, THR_LOCK_DATA **data,
190
191
                                         uint32_t count, THR_LOCK_OWNER *owner);
191
192
void thr_multi_unlock(THR_LOCK_DATA **data,uint32_t count);
192
193
 
193
194
} /* namespace drizzled */
194
195
 
195
 
#endif /* DRIZZLED_THR_LOCK_H */