Move mblock library include files into separate library. Updates to usrp in-band...
[debian/gnuradio] / mblock / src / lib / qa_timeouts.cc
index 2897c325028808c3c85431effb5f00a73b17cecc..2505635c1ded396e7e52f109c7f1f00fab87dce4 100644 (file)
@@ -1,12 +1,12 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2007 Free Software Foundation, Inc.
+ * Copyright 2007,2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
 #endif
 #include <qa_timeouts.h>
 #include <cppunit/TestAssert.h>
-#include <mb_mblock.h>
-#include <mb_runtime.h>
-#include <mb_protocol_class.h>
-#include <mb_exception.h>
-#include <mb_message.h>
-#include <mb_msg_accepter.h>
-#include <mb_class_registry.h>
+#include <mblock/mblock.h>
+#include <mblock/runtime.h>
+#include <mblock/protocol_class.h>
+#include <mblock/message.h>
+#include <mblock/msg_accepter.h>
+#include <mblock/class_registry.h>
 #include <mb_timer_queue.h>
-#include <stdio.h>
 #include <string.h>
 #include <iostream>
 
@@ -131,7 +129,9 @@ qa_timeouts::test_timer_queue()
 
 // FWIW, on SuSE 10.1 for x86-64, clock_getres returns 0.004 seconds.
 
-#define TIMING_MARGIN 0.010    // seconds
+// #define TIMING_MARGIN 0.010 // seconds   // was failing on some systems
+#define TIMING_MARGIN 0.025    // seconds  (really sloppy; consider enabling RT scheduler)
+
 
 class qa_timeouts_1_top : public mb_mblock
 {