DragonNest/Server/ServiceManager/SessionWatcher.cpp
2024-12-20 16:56:44 +08:00

39 lines
1.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#include "Stdafx.h"
#include "SessionWatcher.h"
CSessionWatcher::CSessionWatcher()
{
m_nLastAddingTime = 0;
}
CSessionWatcher::~CSessionWatcher()
{
m_WatchingList.clear();
}
bool CSessionWatcher::CheckWatchingItems()
{
ULONG nCurTick = timeGetTime();
return false;
}
bool CSessionWatcher::AddWatchingItem()
{
ULONG nCurTick = timeGetTime();
m_WatchingList.push_back(nCurTick);
m_nLastAddingTime = nCurTick;
return false;
}
bool CSessionWatcher::DelWatchingItem()
{
if (m_WatchingList.empty())
return false;
m_WatchingList.pop_front();
return true;
}