~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to src/hashtab_xt.cc

  • Committer: Vladimir Kolesnikov
  • Date: 2009-01-21 13:55:57 UTC
  • mto: This revision was merged to the branch mainline in revision 533.
  • Revision ID: vladimir@primebase.org-20090121135557-gyzk4wo3kj126jda
added thread lock lists

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <ctype.h>
26
26
 
 
27
#include "pthread_xt.h"
27
28
#include "heap_xt.h"
28
29
#include "thread_xt.h"
29
30
#include "hashtab_xt.h"
42
43
        if (with_lock || with_cond) {
43
44
                ht->ht_lock = (xt_mutex_type *) xt_calloc(self, sizeof(xt_mutex_type));
44
45
                try_(a) {
45
 
                        xt_init_mutex(self, ht->ht_lock);
 
46
                        xt_init_mutex_with_autoname(self, ht->ht_lock);
46
47
                }
47
48
                catch_(a) {
48
49
                        xt_free(self, ht->ht_lock);