~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_locks/barriers.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-24 13:19:47 UTC
  • mto: (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2207.
  • Revision ID: olafvdspek@gmail.com-20110224131947-0fra5adn3kixp6v1
Use "iter->" instead of "(*iter)."

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
}