mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
40f66f8b04
Signed-off-by: Kevin Williams <admin@utermux.dev>
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
diff -u -r ../cache/tmp-checkout/libs/pbd/pthread_utils.cc ./libs/pbd/pthread_utils.cc
|
|
--- ../cache/tmp-checkout/libs/pbd/pthread_utils.cc 2024-09-12 10:52:22.779516386 +0000
|
|
+++ ./libs/pbd/pthread_utils.cc 2024-09-12 10:52:23.445514465 +0000
|
|
@@ -412,7 +412,9 @@
|
|
pthread_attr_setschedpolicy (&attr, policy);
|
|
pthread_attr_setschedparam (&attr, &parm);
|
|
pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM);
|
|
+#if !defined __ANDROID__ || __ANDROID_API__ >= 28
|
|
pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED);
|
|
+#endif
|
|
if (stacksize > 0) {
|
|
pthread_attr_setstacksize (&attr, stacksize + pbd_stack_size ());
|
|
}
|
|
diff -u -r ../cache/tmp-checkout/libs/zita-convolver/zita-convolver.cc ./libs/zita-convolver/zita-convolver.cc
|
|
--- ../cache/tmp-checkout/libs/zita-convolver/zita-convolver.cc 2024-09-12 10:52:22.933515941 +0000
|
|
+++ ./libs/zita-convolver/zita-convolver.cc 2024-09-12 10:52:23.443514471 +0000
|
|
@@ -625,7 +625,9 @@
|
|
pthread_attr_setschedpolicy (&attr, policy);
|
|
pthread_attr_setschedparam (&attr, &parm);
|
|
pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM);
|
|
+#if !defined __ANDROID__ || __ANDROID_API__ >= 28
|
|
pthread_attr_setinheritsched (&attr, PTHREAD_EXPLICIT_SCHED);
|
|
+#endif
|
|
pthread_attr_setstacksize (&attr, 0x10000); // 64kB
|
|
pthread_create (&_pthr, &attr, static_main, this);
|
|
pthread_attr_destroy (&attr);
|