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

« back to all changes in this revision

Viewing changes to src/restart_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:
1538
1538
 
1539
1539
static void xres_init_checkpoint_state(XTThreadPtr self, XTCheckPointStatePtr cp)
1540
1540
{
1541
 
        xt_init_mutex(self, &cp->cp_state_lock);
 
1541
        xt_init_mutex_with_autoname(self, &cp->cp_state_lock);
1542
1542
}
1543
1543
 
1544
1544
static void xres_free_checkpoint_state(XTThreadPtr self, XTCheckPointStatePtr cp)
1578
1578
{
1579
1579
        xtLogID max_log_id;
1580
1580
 
1581
 
        xt_init_mutex(self, &db->db_cp_lock);
 
1581
        xt_init_mutex_with_autoname(self, &db->db_cp_lock);
1582
1582
        xt_init_cond(self, &db->db_cp_cond);
1583
1583
        
1584
1584
        xres_init_checkpoint_state(self, &db->db_cp_state);