Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ReusableThread from the utilities package #145

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CardWrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//#include "flxlibs/felixcardreader/Structs.hpp"

#include "appmodel/FelixInterface.hpp"
#include "datahandlinglibs/utils/ReusableThread.hpp"
#include "utilities/ReusableThread.hpp"

#include "flxcard/FlxCard.h"
#include "packetformat/block_format.hpp"
Expand Down Expand Up @@ -107,7 +107,7 @@ class CardWrapper
// Processor
inline static const std::string m_dma_processor_name = "flx-dma";
std::atomic<bool> m_run_lock;
datahandlinglibs::ReusableThread m_dma_processor;
utilities::ReusableThread m_dma_processor;
std::function<void(uint64_t)> m_handle_block_addr; // NOLINT
bool m_block_addr_handler_available{ false };
void process_DMA();
Expand Down
4 changes: 2 additions & 2 deletions src/ElinkModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "iomanager/IOManager.hpp"
#include "iomanager/Sender.hpp"
#include "logging/Logging.hpp"
#include "datahandlinglibs/utils/ReusableThread.hpp"
#include "utilities/ReusableThread.hpp"

#include <folly/ProducerConsumerQueue.h>
#include <nlohmann/json.hpp>
Expand Down Expand Up @@ -190,7 +190,7 @@ class ElinkModel : public ElinkConcept

// Processor
inline static const std::string m_parser_thread_name = "elinkp";
datahandlinglibs::ReusableThread m_parser_thread;
utilities::ReusableThread m_parser_thread;
void process_elink()
{
while (m_run_marker.load()) {
Expand Down
Loading