~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/thr_lock.h

  • Committer: Lee Bieber
  • Date: 2011-01-28 21:08:33 UTC
  • mfrom: (2119.4.3 try-visibility)
  • Revision ID: kalebral@gmail.com-20110128210833-nro17n81etdpcylm
Merge Monty - Enable -fvisibility=hidden

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <boost/thread/shared_mutex.hpp>
23
23
#include <boost/thread/condition_variable.hpp>
24
24
 
 
25
#include "drizzled/visibility.h"
 
26
 
25
27
namespace drizzled
26
28
{
27
29
 
104
106
struct THR_LOCK;
105
107
struct THR_LOCK_DATA;
106
108
 
107
 
struct THR_LOCK_DATA {
 
109
struct DRIZZLED_API THR_LOCK_DATA {
108
110
  THR_LOCK_OWNER *owner;
109
111
  struct THR_LOCK_DATA *next,**prev;
110
112
  struct THR_LOCK *lock;
185
187
class Session; 
186
188
 
187
189
#define thr_lock_owner_init(owner, info_arg) (owner)->info= (info_arg)
188
 
void thr_lock_init(THR_LOCK *lock);
 
190
DRIZZLED_API void thr_lock_init(THR_LOCK *lock);
189
191
enum enum_thr_lock_result thr_multi_lock(Session &session, THR_LOCK_DATA **data,
190
192
                                         uint32_t count, THR_LOCK_OWNER *owner);
191
193
void thr_multi_unlock(THR_LOCK_DATA **data,uint32_t count);