Beispiel #1
0
static void *
RunThread(void *data)
{
    SDL_RunThread(data);
    pthread_exit((void *) 0);
    return ((void *) 0);        /* Prevent compiler warning */
}
Beispiel #2
0
int RunThread(TAny* data)
{
	CTrapCleanup* cleanup = CTrapCleanup::New();
	TRAPD(err, SDL_RunThread(data));
	EpocSdlEnv::CleanupItems();
	delete cleanup;
	return(err);
}
Beispiel #3
0
static void *
RunThread(void *data)
{
#ifdef __ANDROID__
    Android_JNI_SetupThread();
#endif
    SDL_RunThread(data);
    return NULL;
}
Beispiel #4
0
int RunThread(TAny* data)
    {
    CTrapCleanup* cleanup = CTrapCleanup::New();
    EpocSdlEnv::AppendThread(RThread().Id());
    TRAPD(err, SDL_RunThread(data));
    EpocSdlEnv::CleanupItems();
    delete cleanup;
    EpocSdlEnv::RemoveThread(RThread().Id());
    return(err);
    }
Beispiel #5
0
static DWORD
RunThread(void *data)
{
    pThreadStartParms pThreadParms = (pThreadStartParms) data;
    pfnSDL_CurrentEndThread pfnEndThread = pThreadParms->pfnCurrentEndThread;
    void *args = pThreadParms->args;
    SDL_free(pThreadParms);
    SDL_RunThread(args);
    if (pfnEndThread != NULL)
        pfnEndThread(0);
    return (0);
}
Beispiel #6
0
static void
threadfunc(void *pparm)
{
    pThreadStartParms pThreadParms = pparm;
    pfnSDL_CurrentEndThread pfnCurrentEndThread = NULL;

    // Call the thread function!
    SDL_RunThread(pThreadParms->args);

    // Get the current endthread we have to use!
    if (pThreadParms) {
        pfnCurrentEndThread = pThreadParms->pfnCurrentEndThread;
        SDL_free(pThreadParms);
    }
    // Call endthread!
    if (pfnCurrentEndThread)
        (*pfnCurrentEndThread) ();
}
static void threadfunc(void *pparm)
{
  pThreadStartParms pThreadParms = pparm;
  pfnSDL_CurrentEndThread pfnCurrentEndThread = NULL;

  
  SDL_RunThread(pThreadParms->args);

  
  if (pThreadParms)
  {
    pfnCurrentEndThread = pThreadParms->pfnCurrentEndThread;
    SDL_free(pThreadParms);
  }
  
  if (pfnCurrentEndThread)
    (*pfnCurrentEndThread)();
}
static DWORD RunThread(void *data)
{
  pThreadStartParms pThreadParms = (pThreadStartParms)data;
  pfnSDL_CurrentEndThread pfnCurrentEndThread = NULL;

  // Call the thread function!
  SDL_RunThread(pThreadParms->args);

  // Get the current endthread we have to use!
  if (pThreadParms)
  {
    pfnCurrentEndThread = pThreadParms->pfnCurrentEndThread;
    SDL_free(pThreadParms);
  }
  // Call endthread!
  if (pfnCurrentEndThread)
    (*pfnCurrentEndThread)(0);
  return(0);
}
void *run_thread(void *data)
{
    SDL_RunThread(data);
    return ((void *) 0); /* Prevent compiler warning */
}
Beispiel #10
0
static int ThreadEntry(SceSize args, void *argp)
{
    SDL_RunThread(*(void **) argp);
    return 0;
}
Beispiel #11
0
static void *
RunThread(void *data)
{
    SDL_RunThread(data);
    return NULL;
}
Beispiel #12
0
static DWORD WINAPI
RunThreadViaCreateThread(LPVOID data)
{
	SDL_RunThread(data);
	return (0);
}
Beispiel #13
0
int RunThread(TAny* data)
{
	SDL_RunThread(data);
	return(0);
}
Beispiel #14
0
static void
RunThread(void *args)
{
    SDL_RunThread(args);
}
Beispiel #15
0
static int32 RunThread(void *data)
{
	SDL_RunThread(data);
	return(0);
}
Beispiel #16
0
static void
RunThread(void *arg)
{
    SDL_RunThread(arg);
	sysThreadExit(0);
}
Beispiel #17
0
static void rbsdl_runthread(void)
{
    void *args = global_args;
    global_args = NULL;
    SDL_RunThread(args);
}