commit - fe0e729042492b0efa2dd74dc82fca75e5383e22
commit + 9832a51c8b5d6ea3e980bf0251523e9ebf301b68
blob - 23d3862bd60b306cd65d724e25b63a2ceb8ce659
blob + 094e8372a6a869db30b8b7943645cdb78c02103c
--- 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;
}