From f315c95fa1221441106f1e6e4f4a0f7849ccb4b4 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 --- unix.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'unix.c') diff --git a/unix.c b/unix.c index cb13eb06d..ba2f6a922 100644 --- a/unix.c +++ b/unix.c @@ -14,9 +14,6 @@ #include #include #include -#if !defined(__MORPHOS__) && !defined(__AMIGA__) - #include -#endif #if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__GLIBC__) #define HAS_STATVFS @@ -515,29 +512,6 @@ bool InsertTextBufferClipboard(Textbuf *tb) return false; } -/** Dummy stubs as MorphOS/ AmigaOS does not really - * know about a thread concept nor has a working libpthread */ -#if defined(__MORPHOS__) || defined(__AMIGA__) - typedef int pthread_t; - #define pthread_create(thread, attr, function, arg) (true) - #define pthread_join(thread, retval) -#endif - -static pthread_t thread1 = 0; - -bool CreateOTTDThread(void *func, void *param) -{ - return pthread_create(&thread1, NULL, func, param) == 0; -} - -void JoinOTTDThread(void) -{ - if (thread1 == 0) return; - - pthread_join(thread1, NULL); -} - - #ifdef ENABLE_NETWORK -- cgit v1.2.3-54-g00ecf