~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_mutex.cc

  • Committer: Brian Aker
  • Date: 2008-12-05 17:55:00 UTC
  • Revision ID: brian@tangent.org-20081205175500-g3ja7dl0vfgjtrob
Random cleanup, removed dead mysys call for hw address creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
 
55
55
int safe_mutex_init(safe_mutex_t *mp,
56
 
                    const pthread_mutexattr_t *attr __attribute__((unused)),
57
 
                    const char *file,
58
 
                    uint32_t line)
 
56
                    const pthread_mutexattr_t *, const char *file, uint32_t line)
59
57
{
60
58
  memset(mp, 0, sizeof(*mp));
61
59
  pthread_mutex_init(&mp->global,MY_MUTEX_INIT_ERRCHK);
354
352
   This is ok, as this thread may not yet have been exited.
355
353
*/
356
354
 
357
 
void safe_mutex_end(int *file __attribute__((unused)))
 
355
void safe_mutex_end(int *)
358
356
{
359
357
  if (!safe_mutex_count)                        /* safetly */
360
358
    pthread_mutex_destroy(&THR_LOCK_mutex);