Skip to content

Commit ef6f976

Browse files
authored
[WIP,Testing] remove the lock around the thread shutdown function again (#5479)
* remove the lock around the thread shutdown function - server is locked already here
1 parent 0c59ae0 commit ef6f976

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)