summaryrefslogtreecommitdiff
path: root/usrp/host/lib/legacy/mld_threads.h
diff options
context:
space:
mode:
authormichaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5>2008-01-13 20:41:11 +0000
committermichaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5>2008-01-13 20:41:11 +0000
commit4022e568aa33f223df17b869af80f5c6565df286 (patch)
tree901c6938f22f7dde651a7eefba8d45bbf0ebe85f /usrp/host/lib/legacy/mld_threads.h
parent88632145c80262215e8a1ea8c18fea4ae98772c9 (diff)
Merged OSX fixes for 10.5 (backwards compatible with 10.4 if not
earlier) for USRP legacy fast-usb code from r7358 branch into trunk: Fixed DEBUG commands in all files. Fixed flow control between originating and spawned threads. Fixed WritePipeAsync buffer write size. Added in debugging comments to fusb code, to better track async flow. NOT YET updated for MacOS X 10.5-specific IOKit code, but everything seems to work just fine as is. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7417 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host/lib/legacy/mld_threads.h')
-rw-r--r--usrp/host/lib/legacy/mld_threads.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/usrp/host/lib/legacy/mld_threads.h b/usrp/host/lib/legacy/mld_threads.h
index a59a928634..b2ec657510 100644
--- a/usrp/host/lib/legacy/mld_threads.h
+++ b/usrp/host/lib/legacy/mld_threads.h
@@ -37,7 +37,10 @@
#include <stdexcept>
#define __INLINE__ inline
+
+#ifndef DO_DEBUG
#define DO_DEBUG 0
+#endif
#if DO_DEBUG
#define DEBUG(X) do{X} while(0);
@@ -182,7 +185,7 @@ public:
__INLINE__ mld_mutex_ptr mutex () {return (d_mutex);};
__INLINE__ void signal () {
- DEBUG (fprintf (stderr, "a "));
+ DEBUG (fprintf (stderr, "a "););
#ifdef _USE_OMNI_THREADS_
d_condition->signal ();
@@ -193,11 +196,11 @@ public:
"Error %d.\n", l_ret);
}
#endif
- DEBUG (fprintf (stderr, "b "));
+ DEBUG (fprintf (stderr, "b "););
};
__INLINE__ void wait () {
- DEBUG (fprintf (stderr, "c "));
+ DEBUG (fprintf (stderr, "c "););
#ifdef _USE_OMNI_THREADS_
d_condition->wait ();
#else
@@ -207,7 +210,7 @@ public:
"Error %d.\n", l_ret);
}
#endif
- DEBUG (printf (stderr, "d "));
+ DEBUG (fprintf (stderr, "d "););
};
};