Commit Diff


commit - bf16ce9567e383f40f76bdd7468c72bf921fc1bf
commit + 4f73a04b6396087a85fe0bc181e1e04b0c0d674f
blob - ef69429eb4ba2e561f99ebcf790e0f123f4d05cb
blob + 499fad18a7c542dd22ce8d4b489207884559d884
--- tog/tog.c
+++ tog/tog.c
@@ -40,7 +40,6 @@
 #include <pthread.h>
 #include <libgen.h>
 #include <regex.h>
-#include <sched.h>
 
 #include "got_version.h"
 #include "got_error.h"
@@ -1717,15 +1716,6 @@ view_input(struct tog_view **new, int *done, struct to
 	}
 
 	if (view->searching && !view->search_next_done) {
-		errcode = pthread_mutex_unlock(&tog_mutex);
-		if (errcode)
-			return got_error_set_errno(errcode,
-			    "pthread_mutex_unlock");
-		sched_yield();
-		errcode = pthread_mutex_lock(&tog_mutex);
-		if (errcode)
-			return got_error_set_errno(errcode,
-			    "pthread_mutex_lock");
 		view->search_next(view);
 		return NULL;
 	}