CMaster::CMaster() :
m_pFpga(nullptr)
, m_pNotifyQueueListener(new CMasterTcpNotifyQueueListener(this))
, m_pHeartBeatWaiter(new CHeartBeatWaiter(this))
, m_pSendDisplayDataQueueListener(new CSendDisplayDataQueueListener(this))
, m_pImageGenerationQueueListener(new C3DImageGenerationQueueListener(this))
, m_pMasterCmdReceiver(new CMasterTcpCmdReceiver(this))
, m_pPlayBackQueueListener(new CPlayBackQueueListener(this))
{
}
new一个对象 传参this有什么用?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
CSDN专家-赖老师(软件之家) 2021-04-08 19:48关注this 就代表这个对象,可以通过this调用对象的成员变量和成员函数
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报