Lines Matching refs:crit_sect
45 explicit ProtectedCount(CriticalSectionWrapper* crit_sect)
46 : crit_sect_(crit_sect),
100 CriticalSectionWrapper* crit_sect
102 ProtectedCount count(crit_sect);
106 crit_sect->Enter();
114 crit_sect->Leave(); // This frees the thread to act.
118 delete crit_sect;
132 CriticalSectionWrapper* crit_sect
134 ProtectedCount count(crit_sect);
138 crit_sect->Enter(); // Make sure counter stays 0 until we wait for it.
140 crit_sect->Leave();
149 crit_sect->Enter();
155 crit_sect->Leave();
162 delete crit_sect;