comparison 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
comparison
equal deleted inserted replaced
954:3acd16ea0180 955:d74fbf56f2f6
36 36
37 #include "kernel.h" 37 #include "kernel.h"
38 #include "swis.h" 38 #include "swis.h"
39 39
40 #include "SDL_riscostask.h" 40 #include "SDL_riscostask.h"
41
42 #ifndef DISABLE_THREADS
43 #include <pthread.h>
44 pthread_t main_thread;
45 #endif
41 46
42 /* RISCOS variables */ 47 /* RISCOS variables */
43 48
44 static int task_handle = 0; 49 static int task_handle = 0;
45 static int wimp_version = 0; 50 static int wimp_version = 0;
105 { 110 {
106 wimp_version = regs.r[0]; 111 wimp_version = regs.r[0];
107 task_handle = regs.r[1]; 112 task_handle = regs.r[1];
108 return 1; 113 return 1;
109 } 114 }
115
116 #ifndef DISABLE_THREADS
117 main_thread = pthread_self();
118 #endif
110 119
111 return 0; 120 return 0;
112 } 121 }
113 122
114 /********************************************************************* 123 /*********************************************************************