src/thread/pth/SDL_systhread.c
changeset 321 af42e7c4c860
parent 297 f6ffac90895c
child 329 1d74ddc90cb2
     1.1 --- a/src/thread/pth/SDL_systhread.c	Thu Mar 28 16:20:10 2002 +0000
     1.2 +++ b/src/thread/pth/SDL_systhread.c	Sat Mar 30 18:53:23 2002 +0000
     1.3 @@ -51,15 +51,17 @@
     1.4  {
     1.5  	pth_attr_t type;
     1.6  
     1.7 +	type = pth_attr_new();
     1.8 +
     1.9  	/* Set the thread attributes */
    1.10 -	if ( pth_attr_init(&type) != 0 ) {
    1.11 +	if ( pth_attr_init(type) != 0 ) {
    1.12  		SDL_SetError("Couldn't initialize pth attributes");
    1.13  		return(-1);
    1.14  	}
    1.15 -	pth_attr_set(&type, PTH_ATTR_JOINABLE, TRUE);
    1.16 +	pth_attr_set(type, PTH_ATTR_JOINABLE, TRUE);
    1.17  
    1.18  	/* Create the thread and go! */
    1.19 -	if ( pth_spawn( &type, RunThread, args) != 0 ) {
    1.20 +	if ( pth_spawn(type, RunThread, args) != 0 ) {
    1.21  		SDL_SetError("Not enough resources to create thread");
    1.22  		return(-1);
    1.23  	}