summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-08 10:51:36 +0000
committerrubidium <rubidium@openttd.org>2008-06-08 10:51:36 +0000
commit96d7f87cc99ee04791b9fa097a027a17bb82226b (patch)
tree051108d9da4b980db5e5e7eb8c7b81c8ea89e9ae /src/thread.h
parentb1dc70549245677303a1fdc0da57df92d80242fa (diff)
downloadopenttd-96d7f87cc99ee04791b9fa097a027a17bb82226b.tar.xz
(svn r13411) -Codechange: remove the return value from the thread procs because it is never used.
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread.h b/src/thread.h
index a1fd4d8d5..f6f29a711 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -5,7 +5,7 @@
#ifndef THREAD_H
#define THREAD_H
-typedef void * (CDECL *OTTDThreadFunc)(void *);
+typedef void (*OTTDThreadFunc)(void *);
/**
* A Thread Object which works on all our supported OSes.
@@ -37,7 +37,7 @@ public:
/**
* Join this thread.
*/
- virtual void *Join() = 0;
+ virtual void Join() = 0;
/**
* Check if this thread is the current active thread.
@@ -64,7 +64,7 @@ public:
* Convert the current thread to a new ThreadObject.
* @return A new ThreadObject with the current thread attached to it.
*/
- static ThreadObject* AttachCurrent();
+ static ThreadObject *AttachCurrent();
/**
* Find the Id of the current running thread.