[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 21/21: runtime: android: tweaking vmcircbuf
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 21/21: runtime: android: tweaking vmcircbuf setup for Android. |
Date: |
Sat, 9 May 2015 14:05:38 +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 ff27361525e3041be63d47c1367b38375c0398ef
Author: Tom Rondeau <address@hidden>
Date: Tue May 5 15:05:51 2015 -0400
runtime: android: tweaking vmcircbuf setup for Android.
---
gnuradio-runtime/lib/vmcircbuf.cc | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnuradio-runtime/lib/vmcircbuf.cc
b/gnuradio-runtime/lib/vmcircbuf.cc
index 9746344..cfc0f2c 100644
--- a/gnuradio-runtime/lib/vmcircbuf.cc
+++ b/gnuradio-runtime/lib/vmcircbuf.cc
@@ -68,10 +68,16 @@ namespace gr {
std::vector<gr::vmcircbuf_factory *> all = all_factories ();
+ // FIXME: Clean up between Android/normal
+ #if ANDROID
+ int ret = 35;
+ char name[35] = "gr::vmcircbuf_mmap_tmpfile_factory";
+ #else
char name[1024];
- //gr::vmcircbuf_prefs::get(FACTORY_PREF_KEY, name, sizeof(name));
- name = "gr::vmcircbuf_mmap_tmpfile_factory";
- if(name) {
+ int ret = gr::vmcircbuf_prefs::get(FACTORY_PREF_KEY, name, sizeof(name));
+ #endif
+
+ if(ret) {
for(unsigned int i = 0; i < all.size (); i++) {
if(strncmp(name, all[i]->name(), strlen(all[i]->name())) == 0) {
s_default_factory = all[i];
- [Commit-gnuradio] [gnuradio] 05/21: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out., (continued)
- [Commit-gnuradio] [gnuradio] 05/21: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 13/21: runtime: moved global block registry to a static get function., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 17/21: controlport: android: cleaning up; better logs; help to support android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 15/21: controlport: fixing complaints about no non-virtual dtor., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 03/21: runtime: android: Android does not support pthread_setaffinity_np; turned this into a nop call., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 18/21: controlport: better handling of Thrift checks for cross-compiling., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 14/21: controlport: build: allowing ControlPort and probes in static builds., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 08/21: cmake: changed to using C checks for headers instead of C++., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 11/21: runtime: android: more conversion of statics vars to static functions., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 20/21: runtime: android: setting better path for prefs files on Android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 21/21: runtime: android: tweaking vmcircbuf setup for Android.,
git <=
- [Commit-gnuradio] [gnuradio] 19/21: android: cmake: prioritize ANDROID_STANDALONE_TOOLCHAIN over ANDROID_NDK., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 12/21: cmake: android: adding toolchain file for building., git, 2015/05/09