/[zanavi_public1]/navit/navit/maptool/cfuhash.c
ZANavi

Diff of /navit/navit/maptool/cfuhash.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 56 Revision 57
168 ht->type = libcfu_t_hash_table; 168 ht->type = libcfu_t_hash_table;
169 ht->num_buckets = size; 169 ht->num_buckets = size;
170 ht->entries = 0; 170 ht->entries = 0;
171 ht->flags = flags; 171 ht->flags = flags;
172 ht->buckets = (cfuhash_entry **)calloc(size, sizeof(cfuhash_entry *)); 172 ht->buckets = (cfuhash_entry **)calloc(size, sizeof(cfuhash_entry *));
173 pthread_mutex_init(&ht->mutex, NULL); 173 //pthread_mutex_init(&ht->mutex, NULL);
174 174
175 ht->hash_func = hash_func; 175 ht->hash_func = hash_func;
176 ht->high = 0.75; 176 ht->high = 0.75;
177 ht->low = 0.25; 177 ht->low = 0.25;
178 178
788 } 788 }
789 } 789 }
790 } 790 }
791 free(ht->buckets); 791 free(ht->buckets);
792 unlock_hash(ht); 792 unlock_hash(ht);
793 pthread_mutex_destroy(&ht->mutex); 793 //pthread_mutex_destroy(&ht->mutex);
794 free(ht); 794 free(ht);
795 795
796 return 1; 796 return 1;
797} 797}
798 798

Legend:
Removed from v.56  
changed lines
  Added in v.57

   
Visit the ZANavi Wiki