projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
additional Andrew provided Termux mods +
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
thread.C
diff --git
a/cinelerra-5.1/guicast/thread.C
b/cinelerra-5.1/guicast/thread.C
index 50b52a47cc52069f5becc3c37d189757884aaee1..9908a6280d54e04706949a47f78ac85ee324dae2 100644
(file)
--- a/
cinelerra-5.1/guicast/thread.C
+++ b/
cinelerra-5.1/guicast/thread.C
@@
-28,6
+28,9
@@
#include <string.h>
#include <typeinfo>
#include "thread.h"
#include <string.h>
#include <typeinfo>
#include "thread.h"
+#if defined(__TERMUX__)
+#include "bthread.h"
+#endif
Thread::Thread(int synchronous, int realtime, int autodelete)
Thread::Thread(int synchronous, int realtime, int autodelete)
@@
-102,8
+105,10
@@
void Thread::start()
perror("Thread::start pthread_attr_setschedparam");
}
else {
perror("Thread::start pthread_attr_setschedparam");
}
else {
+#if !defined(__TERMUX__)
if(pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED) < 0)
perror("Thread::start pthread_attr_setinheritsched");
if(pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED) < 0)
perror("Thread::start pthread_attr_setinheritsched");
+#endif
}
// autodelete may delete this immediately after create
}
// autodelete may delete this immediately after create