Skip to content
Snippets Groups Projects
Commit cf39645e authored by Moe Jette's avatar Moe Jette
Browse files

Relocate pthread_cond_signal() function call to avoid possible deadlock.

parent 9b0a7d99
No related branches found
No related tags found
No related merge requests found
...@@ -599,8 +599,8 @@ static void *_thread_per_node_rpc(void *args) ...@@ -599,8 +599,8 @@ static void *_thread_per_node_rpc(void *args)
/* Signal completion so another thread can replace us */ /* Signal completion so another thread can replace us */
(*task_ptr->threads_active_ptr)--; (*task_ptr->threads_active_ptr)--;
pthread_cond_signal(task_ptr->thread_cond_ptr);
slurm_mutex_unlock(task_ptr->thread_mutex_ptr); slurm_mutex_unlock(task_ptr->thread_mutex_ptr);
pthread_cond_signal(task_ptr->thread_cond_ptr);
xfree(args); xfree(args);
return (void *) NULL; return (void *) NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment