/////////////////////////////////////////////////////////////////////////////
-// Name: thread.cpp
+// Name: src/gtk1/threadno.cpp
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
// Created: 04/22/98
-// RCS-ID: $Id$
// Copyright: (c) Wolfram Gloger (1996, 1997); Guilhem Lavaux (1998)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "thread.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/wx.h"
-#include "wx/module.h"
#include "wx/thread.h"
-#include "wx/log.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/wx.h"
+ #include "wx/log.h"
+ #include "wx/module.h"
+#endif
wxMutex::wxMutex()
{
wxMutex::~wxMutex()
{
if (m_locked)
+ {
wxLogDebug( "wxMutex warning: destroying a locked mutex (%d locks)", m_locked );
+ }
}
wxMutexError wxMutex::Lock()
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
- return FALSE;
+ return false;
}
void wxCondition::Signal()
bool wxThread::IsMain()
{
- return TRUE;
+ return true;
}
bool wxThread::IsRunning() const
{
- return FALSE;
+ return false;
}
bool wxThread::IsAlive() const
{
- return FALSE;
+ return false;
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
- return TRUE;
+ return true;
}
void wxThreadModule::OnExit()