projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add default constructor to wxGraphicsGradientStop.
[wxWidgets.git]
/
src
/
gtk1
/
threadno.cpp
diff --git
a/src/gtk1/threadno.cpp
b/src/gtk1/threadno.cpp
index 8907b7d39d881aa6366ed7c3ba219af108a4c15d..572f91df81459226cd50ad26c7355ba2856eb093 100644
(file)
--- a/
src/gtk1/threadno.cpp
+++ b/
src/gtk1/threadno.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name:
thread
.cpp
+// Name:
src/gtk1/threadno
.cpp
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
// Purpose: Solaris thread support
// Author: Guilhem Lavaux
// Modified by:
@@
-9,17
+9,16
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// 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"
// 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/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()
{
@@
-29,7
+28,9
@@
wxMutex::wxMutex()
wxMutex::~wxMutex()
{
if (m_locked)
wxMutex::~wxMutex()
{
if (m_locked)
+ {
wxLogDebug( "wxMutex warning: destroying a locked mutex (%d locks)", m_locked );
wxLogDebug( "wxMutex warning: destroying a locked mutex (%d locks)", m_locked );
+ }
}
wxMutexError wxMutex::Lock()
}
wxMutexError wxMutex::Lock()
@@
-69,7
+70,7
@@
void wxCondition::Wait(wxMutex& WXUNUSED(mutex))
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
bool wxCondition::Wait(wxMutex& WXUNUSED(mutex), unsigned long WXUNUSED(sec),
unsigned long WXUNUSED(nsec))
{
- return
FALSE
;
+ return
false
;
}
void wxCondition::Signal()
}
void wxCondition::Signal()
@@
-128,17
+129,17
@@
unsigned long wxThread::GetID() const
bool wxThread::IsMain()
{
bool wxThread::IsMain()
{
- return
TRUE
;
+ return
true
;
}
bool wxThread::IsRunning() const
{
}
bool wxThread::IsRunning() const
{
- return
FALSE
;
+ return
false
;
}
bool wxThread::IsAlive() const
{
}
bool wxThread::IsAlive() const
{
- return
FALSE
;
+ return
false
;
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
@@
-170,7
+171,7
@@
bool wxThreadModule::OnInit()
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
{
wxMainMutex = new wxMutex();
wxMainMutex->Lock();
- return
TRUE
;
+ return
true
;
}
void wxThreadModule::OnExit()
}
void wxThreadModule::OnExit()