From 4696ef802a1c3b037a07a841945d73b52720a163 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 5 Aug 2005 09:15:41 +0000 Subject: (svn r2809) Implement more generic threading functions, which allow more than one thread --- os2.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'os2.c') diff --git a/os2.c b/os2.c index 468c01c55..8fe85b033 100644 --- a/os2.c +++ b/os2.c @@ -15,11 +15,9 @@ #include #include #include -#include #include #include -#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) { -- cgit v1.2.3-70-g09d2