commit - bf16ce9567e383f40f76bdd7468c72bf921fc1bf
commit + 4f73a04b6396087a85fe0bc181e1e04b0c0d674f
blob - ef69429eb4ba2e561f99ebcf790e0f123f4d05cb
blob + 499fad18a7c542dd22ce8d4b489207884559d884
--- tog/tog.c
+++ tog/tog.c
#include <pthread.h>
#include <libgen.h>
#include <regex.h>
-#include <sched.h>
#include "got_version.h"
#include "got_error.h"
}
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;
}