[hamradio-commits] [gnss-sdr] 56/303: Fix to terminate the queue thread
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:35:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit a4850dc85dc3eee8964b68143edae99686ca87fd
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Sat Oct 1 11:44:38 2016 +0200
Fix to terminate the queue thread
---
src/tests/system-tests/ttff_gps_l1.cc | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/tests/system-tests/ttff_gps_l1.cc b/src/tests/system-tests/ttff_gps_l1.cc
index 4828605..e1cc80e 100644
--- a/src/tests/system-tests/ttff_gps_l1.cc
+++ b/src/tests/system-tests/ttff_gps_l1.cc
@@ -103,12 +103,15 @@ void receive_msg()
//char buf[80];
//tstruct = *localtime(&jammer.timestamp);
//strftime(buf, sizeof(buf), "%d-%m-%Y-%H-%M-%S", &tstruct);
- if( ttff_msg != 0)
+ if( (ttff_msg != 0) && (ttff_msg != -1))
{
TTFF_v.push_back(ttff_msg / (100 * 10)); // Fix this ! averaging_depth * output_rate_ms
+ }
+
+ if(ttff_msg != -1)
+ {
receive_msg();
}
- //if(TTFF==0) receive_msg();
}
//}
@@ -322,7 +325,7 @@ int main(int argc, char **argv)
}
ttff_msgbuf msg;
msg.mtype = 1;
- msg.ttff = 0;
+ msg.ttff = -1;
int msgsend_size;
msgsend_size = sizeof(msg.ttff);
msgsnd(sysv_msqid, &msg, msgsend_size, IPC_NOWAIT);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list