// Purpose: Unit test for wxMessageQueue
// Author: Evgeniy Tarassov
// Created: 31/10/2007
-// RCS-ID: $Id:$
+// RCS-ID: $Id$
// Copyright: (c) 2007 Evgeniy Tarassov
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
public:
QueueTestCase() { }
-private:
- typedef wxMessageQueue<int> Queue;
-
enum WaitTestType
{
WaitWithTimeout = 0,
WaitInfinitlyLong
};
+private:
+ typedef wxMessageQueue<int> Queue;
+
// This class represents a thread that waits (following WaitTestType type)
// for exactly maxMsgCount messages from its message queue and if another
// MyThread is specified, then every message received is posted
while ( messagesReceived < m_maxMsgCount )
{
wxMessageQueueError result;
- int msg;
+ int msg = -1; // just to suppress "possibly uninitialized" warnings
if ( m_type == WaitWithTimeout )
result = m_queue.ReceiveTimeout(1000, msg);