src/video/riscos/SDL_riscostask.c
changeset 955 d74fbf56f2f6
parent 769 b8d311d90021
child 1035 974ba6ae0fa3
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 /*********************************************************************