~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.c

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
#include "mysys_priv.h"
78
78
 
79
 
#ifdef THREAD
80
79
#include "thr_lock.h"
81
80
#include <m_string.h>
82
81
#include <errno.h>
1502
1501
  pthread_mutex_unlock(&THR_LOCK_lock);
1503
1502
}
1504
1503
 
1505
 
#endif /* THREAD */
1506
 
 
1507
1504
/*****************************************************************************
1508
1505
** Test of thread locks
1509
1506
****************************************************************************/
1510
1507
 
1511
1508
#ifdef MAIN
1512
1509
 
1513
 
#ifdef THREAD
1514
 
 
1515
1510
struct st_test {
1516
1511
  uint lock_nr;
1517
1512
  enum thr_lock_type lock_type;
1741
1736
  return 0;
1742
1737
}
1743
1738
 
1744
 
#else /* THREAD */
1745
 
 
1746
 
int main(int argc __attribute__((unused)),char **argv __attribute__((unused)))
1747
 
{
1748
 
  printf("thr_lock disabled because we are not using threads\n");
1749
 
  exit(1);
1750
 
}
1751
 
 
1752
 
#endif /* THREAD */
1753
1739
#endif /* MAIN */