~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/thr_lock.h

  • Committer: Monty Taylor
  • Date: 2011-01-26 19:15:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: mordred@inaugust.com-20110126191555-nq5nnzyscvngsip2
Turns on -fvisibility=hidden by default. Symbols intended to be used by
plugins need to be marked with DRIZZLED_API.

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);