Update: EventQue deleminate null Event.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2016-10-19 17:20:22 +09:00
parent 143b2ef90b
commit e2cf453c6b
4 changed files with 22 additions and 24 deletions

View File

@@ -207,7 +207,7 @@ public:
int post(T* t)
{
if ( t && ( _maxSize == 0 || size() < _maxSize ))
if ( t && ( _maxSize == 0 || _cnt < _maxSize ))
{
QueElement<T>* elm = new QueElement<T>(t);
if ( _head )