Lines Matching refs:Instance

38     handler = (void*)CNetMgr::Instance()->AllocNetItem();  in CNetHelper()
47 CNetMgr::Instance()->FreeNetItem(net_handler); in ~CNetHelper()
256 CDestLinks* dest_link = CNetMgr::Instance()->FindCreateDest(&key); in GetConnLink()
299 MtFrame* mtframe = MtFrame::Instance(); in WaitConnect()
347 MtFrame* mtframe = MtFrame::Instance(); in WaitSend()
387 MtFrame* mtframe = MtFrame::Instance(); in WaitRecv()
406 utime64_t start_ms = MtFrame::Instance()->GetLastClock(); in SendRecv()
433 cost_time = MtFrame::Instance()->GetLastClock() - start_ms; in SendRecv()
442 cost_time = MtFrame::Instance()->GetLastClock() - start_ms; in SendRecv()
627 if (CNetMgr::Instance()->FindNetItem(this) != NULL) in RegistSession()
632 MtFrame* mtframe = MtFrame::Instance(); in RegistSession()
635 CNetMgr::Instance()->InsertNetItem(this); in RegistSession()
644 CNetMgr::Instance()->RemoveNetItem(this); in UnRegistSession()
705 frame = MtFrame::Instance(); in NotifyThread()
802 _recv_cache.pool = CNetMgr::Instance()->GetSkBuffMng(type); in SetProtoType()
812 MtFrame::Instance()->KqueueDelObj(this); in Close()
871 if (!MtFrame::Instance()->KqueueAddObj(this)) in CreateSock()
1101 rc = MtFrame::Instance()->KqueueCtrlAdd(_fd, KQ_EVENT_READ); in SendData()
1106 rc = MtFrame::Instance()->KqueueCtrlDel(_fd, KQ_EVENT_WRITE); in SendData()
1349 return CNetMgr::Instance()->FindNetItem(&key); in FindSession()
1436 if (!MtFrame::Instance()->KqueueCtrlDel(_fd, KQ_EVENT_WRITE)) in OutputNotify()
1479 CTimerMng* timer = MtFrame::Instance()->GetTimerMng(); in Reset()
1502 CTimerMng* timer = MtFrame::Instance()->GetTimerMng(); in StartTimer()
1523 CNetMgr::Instance()->FreeSockLink(sock); in FreeSockLink()
1531 link = CNetMgr::Instance()->AllocSockLink(); in GetSockLink()
1570 CNetMgr::Instance()->DeleteDestLink(this); in timer_notify()
1580 CNetMgr* CNetMgr::Instance (void) in Instance() function in CNetMgr