aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bladerf/bladerf_sink_c.h
diff options
context:
space:
mode:
authorJon Szymaniak <jon.szymaniak@gmail.com>2013-10-25 23:40:05 -0400
committerDimitri Stolnikov <horiz0n@gmx.net>2013-10-30 18:59:48 +0100
commit03c42ef3206f5667459f78781f95d7fc5c322053 (patch)
treed2d0c7fde68cedd99135243809493e5aa4859492 /lib/bladerf/bladerf_sink_c.h
parent46a241624a328e7107268a0c48a7bc364e4b523e (diff)
bladerf: Moved no longer "common" items out of bladerf_common
The gr_complex FIFO is no longer used on the TX side, so it doesn't really make sense to have it in bladerf_common. The associated items have been moved into bladerf_source, and some renaming has been done in bladerf_sink to tidy up. Pending further performance tests of the bladerf_source, the _fifo member (boost::circular_buffer) may need to be replaced.
Diffstat (limited to 'lib/bladerf/bladerf_sink_c.h')
-rw-r--r--lib/bladerf/bladerf_sink_c.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bladerf/bladerf_sink_c.h b/lib/bladerf/bladerf_sink_c.h
index a0e028b..d969264 100644
--- a/lib/bladerf/bladerf_sink_c.h
+++ b/lib/bladerf/bladerf_sink_c.h
@@ -126,16 +126,16 @@ private: /* members */
bool *_filled;
/* Acquire while updating _filled, and signalling/waiting on
- * _buffer_emptied and _samples_avail */
+ * _buffer_emptied and _buffer_filled */
boost::mutex _buf_status_lock;
- /* wait() may block waiting for the TX callbacks to make a buffer availble.
- * The callback uses this to signal when it has emptied out a buffer. */
+ /* work() may block waiting for the stream callback to empty (consume) a
+ * buffer. The callback uses this to signal when it has emptied a buffer. */
boost::condition_variable _buffer_emptied;
- /* The parent's _samples_avail is used to denote that work() has
- * filled a buffer, unblocking a TX callback that's waiting for samples */
-
+ /* The stream callback may block waiting for work() to fill (produce) a
+ * buffer. work() uses this to signal that it has filled a buffer. */
+ boost::condition_variable _buffer_filled;
/* These values are only to be updated and accessed from within work() */
int16_t *_next_value; /* I/Q value insertion point in current buffer */