src/thread/SDL_thread.c
changeset 329 1d74ddc90cb2
parent 297 f6ffac90895c
child 340 b9f1ce709960
     1.1 --- a/src/thread/SDL_thread.c	Sun Mar 31 04:07:05 2002 +0000
     1.2 +++ b/src/thread/SDL_thread.c	Mon Apr 01 15:35:28 2002 +0000
     1.3 @@ -52,6 +52,12 @@
     1.4  {
     1.5  	int retval;
     1.6  
     1.7 +#ifdef ENABLE_PTH
     1.8 +	if (!pth_init()) {
     1.9 +		return -1;
    1.10 +	}
    1.11 +#endif
    1.12 +
    1.13  	retval = 0;
    1.14  	/* Set the thread lock creation flag so that we can reuse an
    1.15  	   existing lock on the system - since this mutex never gets
    1.16 @@ -80,6 +86,10 @@
    1.17  	if ( mutex != NULL ) {
    1.18  		SDL_DestroyMutex(mutex);
    1.19  	}
    1.20 +
    1.21 +#ifdef ENABLE_PTH
    1.22 +	pth_kill();
    1.23 +#endif
    1.24  }
    1.25  
    1.26  /* Routines for manipulating the thread list */