summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-05 09:15:41 +0000
committertron <tron@openttd.org>2005-08-05 09:15:41 +0000
commit4696ef802a1c3b037a07a841945d73b52720a163 (patch)
tree4db884818a15ec2dc30fe1f1e660bded27872dae /os2.c
parent4f9b0d5f294a86cc3f041b3acaf1b1623afb277e (diff)
downloadopenttd-4696ef802a1c3b037a07a841945d73b52720a163.tar.xz
(svn r2809) Implement more generic threading functions, which allow more than one thread
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/os2.c b/os2.c
index 468c01c55..8fe85b033 100644
--- a/os2.c
+++ b/os2.c
@@ -15,11 +15,9 @@
#include <unistd.h>
#include <sys/stat.h>
#include <stdlib.h>
-#include <process.h>
#include <time.h>
#include <dos.h>
-#define INCL_DOS
#define INCL_WIN
#define INCL_WINCLIPBOARD
@@ -632,28 +630,6 @@ bool InsertTextBufferClipboard(Textbuf *tb)
return false;
}
-static TID thread1 = 0;
-
-// The thread function must be declared and compiled using _Optlink linkage, apparently
-// It seems to work, though :)
-
-bool CreateOTTDThread(void *func, void *param)
-{
- thread1 = _beginthread(func, NULL, 32768, param);
-
- if (thread1 == -1)
- return(false);
-
- return(true);
-}
-
-void JoinOTTDThread(void)
-{
- if (thread1 == 0)
- return;
-
- DosWaitThread(&thread1, DCWW_WAIT);
-}
void CSleep(int milliseconds)
{