From 60bf94ec27a04dfee53b16e9a7e40f1e599b6d00 Mon Sep 17 00:00:00 2001 From: Flemmard Date: Mon, 10 Mar 2014 20:18:45 +0100 Subject: on stock android, pthread_cancel and phtread_setcancelstate doesn't exist Change-Id: Icbe281a301004ae2bcda4821a50fb4a41088e85d --- fuse/fuse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fuse/fuse.c') diff --git a/fuse/fuse.c b/fuse/fuse.c index 34b11d47a..588d44533 100644 --- a/fuse/fuse.c +++ b/fuse/fuse.c @@ -4579,7 +4579,11 @@ void fuse_stop_cleanup_thread(struct fuse *f) { if (lru_enabled(f)) { pthread_mutex_lock(&f->lock); +#ifndef ANDROID pthread_cancel(f->prune_thread); +#else + pthread_kill(f->prune_thread, SIGUSR1); +#endif pthread_mutex_unlock(&f->lock); pthread_join(f->prune_thread, NULL); } -- cgit v1.2.3