Skip to content

Commit 47c9de3

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++
1 parent 8830000 commit 47c9de3

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

include/ipfixprobe/outputPlugin/outputStorage/mcOutputStorage.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class MCOutputStorage : public OutputStorage<ElementType> {
6767
return false;
6868
}
6969

70-
std::atomic_thread_fence(std::memory_order_seq_cst);
71-
// queue.storage[writeIndex].assign(container, *m_allocationBuffer);
70+
// std::atomic_thread_fence(std::memory_order_seq_cst);
71+
// queue.storage[writeIndex].assign(container, *m_allocationBuffer);
7272
this->m_allocationBuffer->replace(queue.storage[writeIndex], element, writerId);
7373
std::atomic_thread_fence(std::memory_order_seq_cst);
7474
queue.enqueCount++;
@@ -117,15 +117,15 @@ class MCOutputStorage : public OutputStorage<ElementType> {
117117
this->shiftAllQueues();
118118
d_s = true;
119119
}
120-
std::atomic_thread_fence(std::memory_order_seq_cst);
120+
// std::atomic_thread_fence(std::memory_order_seq_cst);
121121
const std::size_t readIndex
122122
= queue.groupData[readerGroupIndex]->headIndex++ % queue.storage.size();
123-
std::atomic_thread_fence(std::memory_order_seq_cst);
123+
// std::atomic_thread_fence(std::memory_order_seq_cst);
124124

125125
auto& y = queue.groupData[readerGroupIndex];
126-
if (readerData.cachedEnqueCounts[currentQueueIndex] > queue.enqueCount) {
126+
/*if (readerData.cachedEnqueCounts[currentQueueIndex] > queue.enqueCount) {
127127
throw std::runtime_error("XXXXX");
128-
}
128+
}*/
129129

130130
readerData.lastReadSuccessful = true;
131131
return queue.storage[readIndex];

tests/performance/outputStorage/testOutputStorage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ TEST(TestOutputStorage, Perf)
307307
{
308308
std::cout << "Perf test" << std::endl;
309309
// makePerformanceTest<ipxp::output::MCOutputStorage>("MCOutputStorage");
310-
makeTest<ipxp::output::MC2OutputStorage<ipxp::output::OutputContainer>>(
311-
1,
312-
{1},
310+
makeTest<ipxp::output::MCOutputStorage<ipxp::output::OutputContainer>>(
311+
32,
312+
{8, 8, 8, 8},
313313
false,
314314
10'000'064);
315315
}

0 commit comments

Comments
 (0)