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

« back to all changes in this revision

Viewing changes to src/database_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:
26
26
#include <string.h>
27
27
#include <stdio.h>
28
28
 
 
29
#include "pthread_xt.h"
29
30
#include "hashtab_xt.h"
30
31
#include "filesys_xt.h"
31
32
#include "database_xt.h"
682
683
xtPublic void xt_db_pool_init(XTThreadPtr self, XTDatabaseHPtr db)
683
684
{
684
685
        memset(&db->db_ot_pool, 0, sizeof(XTAllTablePoolsRec));
685
 
        xt_init_mutex(self, &db->db_ot_pool.opt_lock);
 
686
        xt_init_mutex_with_autoname(self, &db->db_ot_pool.opt_lock);
686
687
        xt_init_cond(self, &db->db_ot_pool.opt_cond);
687
688
}
688
689