~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/barriers.cc

  • Committer: Brian Aker
  • Date: 2011-02-27 19:43:52 UTC
  • mfrom: (2192.4.9 iter)
  • Revision ID: brian@tangent.org-20110227194352-w48j3ey8nhonecsd
MergeĀ inĀ find_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
  if ( iter == barrier_map.end())
58
58
    return NOT_FOUND;
59
59
 
60
 
  if (not (*iter).second->getOwner() == owner)
 
60
  if (not iter->second->getOwner() == owner)
61
61
    return NOT_OWNED_BY;
62
62
 
63
 
  (*iter).second->signal(); // We tell anyone left to start running
 
63
  iter->second->signal(); // We tell anyone left to start running
64
64
  (void)barrier_map.erase(arg);
65
65
 
66
66
  return SUCCESS;
72
72
  Map::iterator iter= barrier_map.find(arg);
73
73
 
74
74
  if (iter != barrier_map.end())
75
 
    return (*iter).second;
 
75
    return iter->second;
76
76
 
77
77
  return Barrier::shared_ptr();
78
78
}