diff src/video/riscos/SDL_riscostask.c @ 955:d74fbf56f2f6

Date: Fri, 25 Jun 2004 13:29:15 +0100 From: "alan buckley" Subject: Modification for RISC OS version of SDL Ive attached a zip file with the changes to this email, it contains the following: The file sdldiff.txt is the output from cvs diff u. . The directory thread/riscos contains all the new files to support threading. Readme.riscos is a new readme file to add.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Sep 2004 13:20:10 +0000
parents b8d311d90021
children 974ba6ae0fa3
line wrap: on
line diff
--- a/src/video/riscos/SDL_riscostask.c	Sat Sep 11 18:00:41 2004 +0000
+++ b/src/video/riscos/SDL_riscostask.c	Fri Sep 17 13:20:10 2004 +0000
@@ -39,6 +39,11 @@
 
 #include "SDL_riscostask.h"
 
+#ifndef DISABLE_THREADS
+#include <pthread.h>
+pthread_t main_thread;
+#endif
+
 /* RISCOS variables */
 
 static int task_handle = 0;
@@ -108,6 +113,10 @@
 	   return 1;
    }
 
+#ifndef DISABLE_THREADS
+   main_thread = pthread_self();
+#endif
+
    return 0;
 }