Skip to content

Commit

Permalink
MtQ: integrate with dom
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Oct 5, 2024
1 parent 120e4c3 commit c6c07d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/thread/MtInQueueWithDom.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright 2024 Nokia
* Licensed under the BSD 3 Clause license
* SPDX-License-Identifier: BSD-3-Clause
*/
// ***********************************************************************************************
// - why: auto move an ele in MtQ to DataDom
// ***********************************************************************************************
#pragma once

#include "MtInQueue.hpp"

namespace rlib
{
const char EN_MTQ[] = "/MtQ/";

// ***********************************************************************************************
inline
void defaultHdlr(ELE_TID& aEle_tid)
{
auto&& dom = DAT_DOM;
const auto en = std::string(EN_MTQ) + aEle_tid.second.name();
dom->replaceData(en, aEle_tid.first);
dom->forceAllHdlr(en);
}

} // namespace
// ***********************************************************************************************
// YYYY-MM-DD Who v)Modification Description
// .......... ......... .......................................................................
// 2024-10-05 CSZ 1)create
// ***********************************************************************************************

0 comments on commit c6c07d0

Please sign in to comment.