int operator()() { if (expected >= 0) EXPECT_EQ(expected, monitor->GetInt32Value()); for (int i = 0; i < 100; i++) monitor->SetValue(monitor->GetInt32Value() + 1); return monitor->GetInt32Value(); }
void operator()() { for (int i = 0; i < 100000; i++) monitor->SetValue(monitor->GetInt32Value() + 1); }