Home | History | Annotate | Download | only in unittest

Lines Matching defs:GLOB

70 // In this test we have many different accesses to GLOB and only one access
72 int GLOB = 0;
81 MU1.Lock(); CHECK(GLOB >= 0); MU1.Unlock();
85 MU2.Lock(); CHECK(GLOB >= 0); MU2.Unlock();
89 MU1.Lock(); CHECK(GLOB >= 0); MU1.Unlock();
93 MU1.Lock(); GLOB++; MU1.Unlock();
114 int GLOB = 0;
117 void Worker1() { CHECK(GLOB >= 0); }
118 void Worker2() { MU.Lock(); GLOB=1; MU.Unlock();}
122 ANNOTATE_TRACE_MEMORY(&GLOB);
173 int GLOB = 0;
175 // In this test GLOB is protected by MU1 and MU2, but inconsistently.
183 // which mutex is supposed to protect GLOB.
186 void Worker1() { MU1.Lock(); MU2.Lock(); GLOB=1; MU2.Unlock(); MU1.Unlock(); }
187 void Worker2() { MU1.Lock(); GLOB=2; MU1.Unlock(); }
188 void Worker3() { MU1.Lock(); MU2.Lock(); GLOB=3; MU2.Unlock(); MU1.Unlock(); }
189 void Worker4() { MU2.Lock(); GLOB=4; MU2.Unlock(); }
192 ANNOTATE_TRACE_MEMORY(&GLOB);
205 int GLOB = 0;
211 void Worker1() { MU1.Lock(); MU2.Lock(); GLOB=1; MU2.Unlock(); MU1.Unlock(); }
212 void Worker2() { MU1.Lock(); MU2.Lock(); GLOB=3; MU2.Unlock(); MU1.Unlock(); }
213 void Worker3() { GLOB=4; }
216 ANNOTATE_TRACE_MEMORY(&GLOB);
228 int *GLOB = 0;
242 (*GLOB)++; // "--keep-history=2" will point here (experimental).
255 GLOB = new int;
256 *GLOB = 1;
307 string GLOB;
310 GLOB="Thread1";
314 GLOB="Booooooooooo";
453 int GLOB = 0;
454 void RaceyWrite() { GLOB++; }
486 int GLOB = 0;
488 // Worker(N) will do 2^N increments of GLOB, each increment in a separate thread
497 GLOB++; // Race here
503 printf("\tGLOB=%d\n", GLOB);
567 int GLOB;
577 GLOB++;
582 GLOB++;
589 GLOB = 0;