]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
replace pthread_yield with POSIX sched_yield
authorCarlo Landmeter <clandmeter@gmail.com>
Thu, 12 May 2016 22:24:14 +0000 (00:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 31 May 2016 15:26:32 +0000 (17:26 +0200)
See: http://linux.die.net/man/3/pthread_yield

src/api/api_idnode.c

index fa9edb3ecd28bc04c6c4b6cb420ed9b943104e7d..eb4164621f7d72db2b6575c1a2fbf6e1b4fe2098 100644 (file)
@@ -651,7 +651,7 @@ api_idnode_handler
       }
       pthread_mutex_unlock(&global_lock);
       if (destroyed)
-        pthread_yield(); /* delete penalty */
+        sched_yield(); /* delete penalty */
     }
     htsmsg_destroy(msg);