ThreadSafeSet: Remove unused class

This commit is contained in:
2026-04-15 11:24:02 +02:00
parent a74efcd830
commit 54d741611a
2 changed files with 3 additions and 67 deletions
-20
View File
@@ -97,26 +97,6 @@ TEST_CASE("ThreadSafeFIFO_GetTimeout_no_timeout","[ThreadSafeFIFO]") {
std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << std::endl;
}
TEST_CASE("ThreadSafeSet","[ThreadSafeFIFO]") {
ThreadSafeSet<uint32_t> set;
uint32_t tmp;
set.Put(0);
set.Put(1);
REQUIRE(set.Get(tmp) == 1);
CHECK (tmp == 0);
set.Put(0);
REQUIRE(set.Get(tmp) == 1);
CHECK (tmp == 0);
REQUIRE(set.Get(tmp) == 1);
CHECK (tmp == 1);
REQUIRE(set.Get(tmp) == 0);
}
TEST_CASE("ThreadSafeFIFO_Utilization","[ThreadSafeFIFO]") {
ThreadSafeFIFO<uint32_t> fifo;
uint32_t tmp;