mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Fixed a regression test
This commit is contained in:
parent
13df3441ae
commit
87a8a1975e
@ -25,7 +25,7 @@ int rand_reentrant(unsigned int* s) {
|
|||||||
|
|
||||||
static void test_basic_eventcount()
|
static void test_basic_eventcount()
|
||||||
{
|
{
|
||||||
std::vector<EventCount::Waiter> waiters(1);
|
MaxSizeVector<EventCount::Waiter> waiters(1);
|
||||||
EventCount ec(waiters);
|
EventCount ec(waiters);
|
||||||
EventCount::Waiter& w = waiters[0];
|
EventCount::Waiter& w = waiters[0];
|
||||||
ec.Notify(false);
|
ec.Notify(false);
|
||||||
@ -81,7 +81,7 @@ static void test_stress_eventcount()
|
|||||||
static const int kEvents = 1 << 16;
|
static const int kEvents = 1 << 16;
|
||||||
static const int kQueues = 10;
|
static const int kQueues = 10;
|
||||||
|
|
||||||
std::vector<EventCount::Waiter> waiters(kThreads);
|
MaxSizeVector<EventCount::Waiter> waiters(kThreads);
|
||||||
EventCount ec(waiters);
|
EventCount ec(waiters);
|
||||||
TestQueue queues[kQueues];
|
TestQueue queues[kQueues];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user