Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Feb 16, 2024
1 parent bc77667 commit 1443bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ut/thread/MtInQueueTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TEST_F(MtInQueueTest, GOLD_sparsePush_fifo)
int nHdl = 0;
while (nHdl < nMsg)
{
auto msg = mt_getQ().pop<int>(); // directly get() will destruct shared_ptr afterward
auto msg = mt_getQ().pop<int>(); // CAN'T directly get() that destruct shared_ptr afterward
if (msg.get())
{
HID("nHdl=" << nHdl << ", msg=" << msg.get() << ", nRef=" << msg.use_count());
Expand Down

0 comments on commit 1443bad

Please sign in to comment.