[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 09/14: runtime: trying to use ANDROID to de
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 09/14: runtime: trying to use ANDROID to define certain behavior |
Date: |
Thu, 12 Mar 2015 19:38:13 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch android
in repository gnuradio.
commit c2cd7a6266e68cb7fc1538f67c6d984803a9c43a
Author: Tom Rondeau <address@hidden>
Date: Tue Dec 30 13:12:25 2014 -0500
runtime: trying to use ANDROID to define certain behavior
---
gnuradio-runtime/lib/CMakeLists.txt | 2 +-
gnuradio-runtime/lib/thread/thread.cc | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnuradio-runtime/lib/CMakeLists.txt
b/gnuradio-runtime/lib/CMakeLists.txt
index f88001f..11ac100 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -155,7 +155,7 @@ IF(HAVE_WINDOWS_H)
ENDIF(HAVE_WINDOWS_H)
#need to link with librt on ubuntu 11.10 for shm_*
-if(LINUX)
+if(LINUX AND !ANDROID)
list(APPEND gnuradio_runtime_libs rt)
endif()
diff --git a/gnuradio-runtime/lib/thread/thread.cc
b/gnuradio-runtime/lib/thread/thread.cc
index 796899e..44dbb37 100644
--- a/gnuradio-runtime/lib/thread/thread.cc
+++ b/gnuradio-runtime/lib/thread/thread.cc
@@ -317,7 +317,12 @@ namespace gr {
CPU_SET(n, &set);
}
+#if !ANDROID
int ret = pthread_setaffinity_np(thread, len, &set);
+#else
+ int ret = 0;
+#endif
+
if(ret != 0) {
std::stringstream s;
s << "thread_unbind failed with error: " << ret << std::endl;
- [Commit-gnuradio] [gnuradio] branch android created (now 1e31c64), git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 08/14: volk: Using C checks for Volk C FLags instead of CXX., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 05/14: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 04/14: runtime: android: issues related to vmcircbuf; only mmap_tmpfile version working currently., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 09/14: runtime: trying to use ANDROID to define certain behavior,
git <=
- [Commit-gnuradio] [gnuradio] 11/14: fft: defined a setting for the FFTW plan options if android or not., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 02/14: logger: android: adding Android log functions for different logging levels., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 13/14: runtime: android: more conversion of statics vars to static functions., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 12/14: runtime: android: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 06/14: volk: using hypot instead of cabsf., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 10/14: cmake: changed to using C checks for headers instead of C++., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 01/14: cmake: android: adding exceptions and atomic to Boost deps; ordering in this patch is important., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 03/14: runtime: android: Android does not support pthread_setaffinity_np; turned this into a nop call., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 07/14: volk: force some support required for android builds; boost unit tests not working yet., git, 2015/03/12
- [Commit-gnuradio] [gnuradio] 14/14: cmake: android: adding toolchain file for building., git, 2015/03/12