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

« back to all changes in this revision

Viewing changes to src/sortedlist_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:
23
23
 
24
24
#include "xt_config.h"
25
25
 
 
26
#include "pthread_xt.h"
26
27
#include "thread_xt.h"
27
28
#include "sortedlist_xt.h"
28
29
 
73
74
        if (with_lock || with_cond) {
74
75
                sl->sl_lock = (xt_mutex_type *) xt_calloc(self, sizeof(xt_mutex_type));
75
76
                try_(b) {
76
 
                        xt_init_mutex(self, sl->sl_lock);
 
77
                        xt_init_mutex_with_autoname(self, sl->sl_lock);
77
78
                }
78
79
                catch_(b) {
79
80
                        xt_free(self, sl->sl_lock);