コード例 #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);
	};