예제 #1
0
	bool get_front(T &node)
	{
		bool ret = false;
		Lock();
		if (!InternalList.empty()) 
		{
			node = InternalList.front();
			ret = true;
		}
		Unlock();
		return ret;
	};
예제 #2
0
	bool pop_front(void)
	{
		bool ret = false;
		Lock();
		if (!InternalList.empty()) 
		{
			InternalList.pop_front();
			ret = true;
		}
		Unlock();
		return (ret);
	};