ref: 1c6a910c112efd7443710a733858129e37366fbf
parent: fff39090530ef03520008d26189fd70b83aa4a3d
author: Martin Storsjö <[email protected]>
date: Sat Mar 8 15:34:09 EST 2014
Don't try to set thread scope and scheduling policy on android These APIs aren't implemented on android.
--- a/codec/common/WelsThreadLib.cpp
+++ b/codec/common/WelsThreadLib.cpp
@@ -188,6 +188,7 @@
err = pthread_attr_init (&at);
if (err)
return err;
+#ifndef __ANDROID__
err = pthread_attr_setscope (&at, PTHREAD_SCOPE_SYSTEM);
if (err)
return err;
@@ -194,6 +195,7 @@
err = pthread_attr_setschedpolicy (&at, SCHED_FIFO);
if (err)
return err;
+#endif
err = pthread_create (thread, &at, routine, arg);
pthread_attr_destroy (&at);