summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/file_source_impl.h
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2012-12-11 22:48:03 -0500
committerTom Rondeau <trondeau@vt.edu>2012-12-11 22:48:03 -0500
commit2011e07a5b45254be65c6cd4104fa04b65f64e03 (patch)
tree7fdf1c341cf7625fd29418444510519b2ea763d0 /gr-blocks/lib/file_source_impl.h
parent95111ed54bebee4726b8c444632cd1bc5f65c28d (diff)
blocks: apply changes to file source in core to one in gr-blocks.
Diffstat (limited to 'gr-blocks/lib/file_source_impl.h')
-rw-r--r--gr-blocks/lib/file_source_impl.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gr-blocks/lib/file_source_impl.h b/gr-blocks/lib/file_source_impl.h
index c35d563d13..600fe80ab6 100644
--- a/gr-blocks/lib/file_source_impl.h
+++ b/gr-blocks/lib/file_source_impl.h
@@ -31,15 +31,22 @@ namespace gr {
class BLOCKS_API file_source_impl : public file_source
{
private:
- size_t d_itemsize;
- void *d_fp;
- bool d_repeat;
+ size_t d_itemsize;
+ FILE *d_fp;
+ FILE *d_new_fp;
+ bool d_repeat;
+ bool d_updated;
+ boost::mutex fp_mutex;
+ void do_update();
+
public:
file_source_impl(size_t itemsize, const char *filename, bool repeat);
~file_source_impl();
bool seek(long seek_point, int whence);
+ void open(const char *filename, bool repeat);
+ void close();
int work(int noutput_items,
gr_vector_const_void_star &input_items,