ref: 44a49b1fef3d2f50f313e1118eb193934c3bf621
parent: a922155c9ac62416ba4dc318b2b2b62ab75ff179
parent: 1c6a910c112efd7443710a733858129e37366fbf
author: ruil2 <[email protected]>
date: Mon Mar 10 13:26:00 EDT 2014
Merge pull request #458 from mstorsjo/android-threading Don't try to set thread scope and scheduling policy 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);