Lines Matching refs:crit_sect
32 explicit ProtectedCount(CriticalSectionWrapper* crit_sect)
33 : crit_sect_(crit_sect),
78 CriticalSectionWrapper* crit_sect =
80 ProtectedCount count(crit_sect);
84 crit_sect->Enter();
92 crit_sect->Leave(); // This frees the thread to act.
96 delete crit_sect;
107 CriticalSectionWrapper* crit_sect =
109 ProtectedCount count(crit_sect);
113 crit_sect->Enter(); // Make sure counter stays 0 until we wait for it.
115 crit_sect->Leave();
124 crit_sect->Enter();
130 crit_sect->Leave();
137 delete crit_sect;