~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_rwlock.c

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* Synchronization - readers / writer thread locks */
17
17
 
18
18
#include "mysys_priv.h"
19
 
#if defined(THREAD) && !defined(HAVE_PTHREAD_RWLOCK_RDLOCK) && !defined(HAVE_RWLOCK_INIT)
 
19
#if !defined(HAVE_PTHREAD_RWLOCK_RDLOCK) && !defined(HAVE_RWLOCK_INIT)
20
20
#include <errno.h>
21
21
 
22
22
/*
145
145
 
146
146
int my_rw_unlock(rw_lock_t *rwp)
147
147
{
148
 
  DBUG_PRINT("rw_unlock",
149
 
             ("state: %d waiters: %d", rwp->state, rwp->waiters));
150
148
  pthread_mutex_lock(&rwp->lock);
151
149
 
152
150
  if (rwp->state == -1)         /* writer releasing */