Skip to content

Commit 95f1e81

Browse files
authored
remove the lock around the thread shutdown function
1 parent e939c6c commit 95f1e81

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

driver/others/blas_server.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,6 @@ int BLASFUNC(blas_thread_shutdown)(void){
984984

985985
int i;
986986

987-
LOCK_COMMAND(&server_lock);
988-
989987
//Free buffers allocated for threads
990988
for(i=0; i<MAX_CPU_NUMBER; i++){
991989
if(blas_thread_buffer[i]!=NULL){
@@ -1025,7 +1023,6 @@ int BLASFUNC(blas_thread_shutdown)(void){
10251023
blas_server_avail = 0;
10261024

10271025
}
1028-
UNLOCK_COMMAND(&server_lock);
10291026

10301027
return 0;
10311028
}

0 commit comments

Comments
 (0)