Fixed compilation errors with msvc

This commit is contained in:
Benoit Steiner
2016-04-15 11:27:52 -07:00
parent 1d23430628
commit 40c9923a8a
2 changed files with 4 additions and 3 deletions

View File

@@ -67,8 +67,8 @@ const int TestQueue::kQueueSize;
static void test_stress_eventcount()
{
const int kThreads = std::thread::hardware_concurrency();
const int kEvents = 1 << 16;
const int kQueues = 10;
static const int kEvents = 1 << 16;
static const int kQueues = 10;
std::vector<EventCount::Waiter> waiters(kThreads);
EventCount ec(waiters);