~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_open.c

  • Committer: Brian Aker
  • Date: 2008-12-05 19:17:37 UTC
  • Revision ID: brian@tangent.org-20081205191737-pp8u84pdz6dcp182
Part removal of my_pthread.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
                         &share->state.key_root,keys*sizeof(my_off_t),
238
238
                         &share->state.key_del,
239
239
                         (share->state.header.max_block_size_index*sizeof(my_off_t)),
240
 
                         &share->key_root_lock,sizeof(rw_lock_t)*keys,
241
 
                         &share->mmap_lock,sizeof(rw_lock_t),
 
240
                         &share->key_root_lock,sizeof(pthread_rwlock_t)*keys,
 
241
                         &share->mmap_lock,sizeof(pthread_rwlock_t),
242
242
                         NULL))
243
243
      goto err;
244
244
    errpos=4;
384
384
    thr_lock_init(&share->lock);
385
385
    pthread_mutex_init(&share->intern_lock,MY_MUTEX_INIT_FAST);
386
386
    for (i=0; i<keys; i++)
387
 
      my_rwlock_init(&share->key_root_lock[i], NULL);
388
 
    my_rwlock_init(&share->mmap_lock, NULL);
 
387
      pthread_rwlock_init(&share->key_root_lock[i], NULL);
 
388
    pthread_rwlock_init(&share->mmap_lock, NULL);
389
389
    if (!thr_lock_inited)
390
390
    {
391
391
      /* Probably a single threaded program; Don't use concurrent inserts */