projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
another GetInt/GetId bug fix
[wxWidgets.git]
/
src
/
stubs
/
thread.cpp
diff --git
a/src/stubs/thread.cpp
b/src/stubs/thread.cpp
index ca3833153ab740fc161123c04b307ae9bdc11906..34ad1a4f14ad02ddcb343efea7d17dbca7ea45db 100644
(file)
--- a/
src/stubs/thread.cpp
+++ b/
src/stubs/thread.cpp
@@
-17,6
+17,8
@@
#include "wx/thread.h"
#include "wx/utils.h"
#include "wx/thread.h"
#include "wx/utils.h"
+#if wxUSE_THREADS
+
enum thread_state {
STATE_IDLE = 0,
STATE_RUNNING,
enum thread_state {
STATE_IDLE = 0,
STATE_RUNNING,
@@
-57,14
+59,14
@@
wxMutexError wxMutex::Lock()
{
// TODO
m_locked++;
{
// TODO
m_locked++;
- return MUTEX_NO_ERROR;
+ return
wx
MUTEX_NO_ERROR;
}
wxMutexError wxMutex::TryLock()
{
// TODO
m_locked++;
}
wxMutexError wxMutex::TryLock()
{
// TODO
m_locked++;
- return MUTEX_NO_ERROR;
+ return
wx
MUTEX_NO_ERROR;
}
wxMutexError wxMutex::Unlock()
}
wxMutexError wxMutex::Unlock()
@@
-73,7
+75,7
@@
wxMutexError wxMutex::Unlock()
m_locked--;
// TODO
m_locked--;
// TODO
- return MUTEX_NO_ERROR;
+ return
wx
MUTEX_NO_ERROR;
}
class wxConditionInternal {
}
class wxConditionInternal {
@@
-134,25
+136,25
@@
public:
wxThreadError wxThread::Create()
{
// TODO
wxThreadError wxThread::Create()
{
// TODO
- return THREAD_NO_ERROR;
+ return
wx
THREAD_NO_ERROR;
}
wxThreadError wxThread::Destroy()
{
// TODO
}
wxThreadError wxThread::Destroy()
{
// TODO
- return THREAD_NO_ERROR;
+ return
wx
THREAD_NO_ERROR;
}
wxThreadError wxThread::Pause()
{
// TODO
}
wxThreadError wxThread::Pause()
{
// TODO
- return THREAD_NO_ERROR;
+ return
wx
THREAD_NO_ERROR;
}
wxThreadError wxThread::Resume()
{
// TODO
}
wxThreadError wxThread::Resume()
{
// TODO
- return THREAD_NO_ERROR;
+ return
wx
THREAD_NO_ERROR;
}
void wxThread::Exit(void *status)
}
void wxThread::Exit(void *status)
@@
-193,11
+195,13
@@
unsigned long wxThread::GetID() const
return 0;
}
return 0;
}
+/*
wxThread *wxThread::GetThreadFromID(unsigned long id)
{
// TODO
return NULL;
}
wxThread *wxThread::GetThreadFromID(unsigned long id)
{
// TODO
return NULL;
}
+*/
bool wxThread::IsAlive() const
{
bool wxThread::IsAlive() const
{
@@
-257,3
+261,5
@@
public:
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
+#endif
+ // wxUSE_THREADS