Skip to content

Commit

Permalink
Refs #132. Kill the threads when unload the library.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed Aug 11, 2012
1 parent 068861a commit a55821a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver/others/blas_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static int blas_thread_server(void *arg){

blas_memory_free(buffer);

pthread_exit(NULL);
//pthread_exit(NULL);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion driver/others/blas_server_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
/* Shutdown procedure, but user don't have to call this routine. The */
/* kernel automatically kill threads. */

int blas_thread_shutdown_(void){
int BLASFUNC(blas_thread_shutdown)(void){

int i;

Expand Down
1 change: 1 addition & 0 deletions driver/others/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ void DESTRUCTOR gotoblas_quit(void) {
moncontrol (1);
#endif

blas_shutdown();
}

#if (defined(C_PGI) || (!defined(C_SUN) && defined(F_INTERFACE_SUN))) && (defined(ARCH_X86) || defined(ARCH_X86_64))
Expand Down

0 comments on commit a55821a

Please sign in to comment.