We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9023e76 commit eb098f6Copy full SHA for eb098f6
1 file changed
driver/others/blas_server.c
@@ -982,6 +982,8 @@ int BLASFUNC(blas_thread_shutdown)(void){
982
983
int i;
984
985
+ LOCK_COMMAND(&server_lock);
986
+
987
//Free buffers allocated for threads
988
for(i=0; i<MAX_CPU_NUMBER; i++){
989
if(blas_thread_buffer[i]!=NULL){
@@ -1021,6 +1023,7 @@ int BLASFUNC(blas_thread_shutdown)(void){
1021
1023
blas_server_avail = 0;
1022
1024
1025
}
1026
+ UNLOCK_COMMAND(&server_lock);
1027
1028
return 0;
1029
0 commit comments