diff src/thread/pth/SDL_systhread.c @ 397:283d348cb624

Pth threading bug fix
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jun 2002 20:42:02 +0000
parents 1d74ddc90cb2
children b8d311d90021
line wrap: on
line diff
--- a/src/thread/pth/SDL_systhread.c	Mon Jun 10 20:37:39 2002 +0000
+++ b/src/thread/pth/SDL_systhread.c	Mon Jun 10 20:42:02 2002 +0000
@@ -64,7 +64,8 @@
 	pth_attr_set(type, PTH_ATTR_JOINABLE, TRUE);
 
 	/* Create the thread and go! */
-	if ( pth_spawn(type, RunThread, args) == NULL ) {
+	thread->handle = pth_spawn(type, RunThread, args);
+	if ( thread->handle == NULL ) {
 		SDL_SetError("Not enough resources to create thread");
 		return(-1);
 	}