Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b
Parent Directory
(gnuradio/gnuradio-core/src/lib)
Kludge Summary of gnuradio/gnuradio-core/src/lib/runtime
| Total Kludges |
9 |
| Total Subdirs |
0 |
All Directories within gnuradio/gnuradio-core/src/lib/runtime
All Files within gnuradio/gnuradio-core/src/lib/runtime
Kludge Snippets in gnuradio/gnuradio-core/src/lib/runtime
gnuradio/gnuradio-core/src/lib/runtime/gr_block.h
| Category |
Magic |
| Committer |
eb |
| Commit ID |
1579bab2e5840e8f7e7918b7cabf250ca4fd259a |
56 class gr_block : public gr_basic_block {
57
58 public:
59
60 //! Magic return values from general_work
61 enum {
62 WORK_CALLED_PRODUCE = -2,
63 WORK_DONE = -1
64 };
gnuradio/gnuradio-core/src/lib/runtime/gr_block_executor.cc
| Category |
FIXME |
| Committer |
eb |
| Commit ID |
2c8ea58e4d76f54c98d71d3fcc64bc29da490908 |
399 // If this is a source, it's broken.
400 if (d->source_p()){
401 std::cerr << "gr_block_executor: source " << m
402 << " produced no output. We're marking it DONE.\n";
403 // FIXME maybe we ought to raise an exception...
404 goto were_done;
405 }
406
407 // Have the caller try again...
gnuradio/gnuradio-core/src/lib/runtime/gr_hier_block2.cc
| Category |
Magic |
| Committer |
eb |
| Commit ID |
395e1fa650428899dee0f123cb7bf432732280c5 |
45 gr_io_signature_sptr output_signature)
46 : gr_basic_block(name, input_signature, output_signature),
47 d_detail(new gr_hier_block2_detail(this))
48 {
49 // This bit of magic ensures that self() works in the constructors of derived classes.
50 gnuradio::detail::sptr_magic::create_and_stash_initial_sptr(this);
51 }
52
53 gr_hier_block2::~gr_hier_block2()
gnuradio/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc
| Category |
FIXME |
| Committer |
Eric Blossom |
| Commit ID |
1181c2fe069075f9ceb3b66ed937115ff39aafa9 |
50 return;
51 }
52 gr_hier_block2 *p2 = dynamic_cast<gr_hier_block2 *>(this);
53 if (p2){
54 // FIXME do the right thing
55 return;
56 }
57
58 throw std::runtime_error("unknown derived class");
gnuradio/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc
| Category |
Kludge |
| Committer |
eb |
| Commit ID |
02cd43b565615593f90bd08eb4e718a6ee649661 |
74
75 void
76 gr_single_threaded_scheduler::run ()
77 {
78 // d_enabled = true; // KLUDGE
79 main_loop ();
80 }
81
82 void
gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 1
| Category |
Kludge |
| Committer |
Tom Rondeau |
| Commit ID |
54b396764a9fad91cbfd10f618e4faed1c8bafa2 |
112 CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
113 CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
114
115 #if QA_TAGS_DEBUG
116 // Kludge together the tags that we know should result from the above graph
117 std::stringstream str0, str1, str2;
118 str0 << ann0->name() << ann0->unique_id();
119 str1 << ann1->name() << ann1->unique_id();
120 str2 << ann2->name() << ann2->unique_id();
gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 2
| Category |
Kludge |
| Committer |
Tom Rondeau |
| Commit ID |
77d778896b72379676d2b00e591f9bbb5f6fcc44 |
203 CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)12);
204
205
206 #if QA_TAGS_DEBUG
207 // Kludge together the tags that we know should result from the above graph
208 std::stringstream str0, str1;
209 str0 << ann0->name() << ann0->unique_id();
210 str1 << ann1->name() << ann1->unique_id();
211
gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 3
| Category |
Kludge |
| Committer |
Tom Rondeau |
| Commit ID |
4a63bc91ddceaa8ce9d14a3f714bd0cdc3e85128 |
296 CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
297 CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
298
299 #if QA_TAGS_DEBUG
300 // Kludge together the tags that we know should result from the above graph
301 std::stringstream str0, str1, str2;
302 str0 << ann0->name() << ann0->unique_id();
303 str1 << ann1->name() << ann1->unique_id();
304 str2 << ann2->name() << ann2->unique_id();
gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 4
| Category |
Kludge |
| Committer |
Tom Rondeau |
| Commit ID |
8d84a2fc9a804b2248fe43c3d8b230ef99aebaa2 |
404 CPPUNIT_ASSERT_EQUAL(tags2.size(), (size_t)8);
405
406
407 #if QA_TAGS_DEBUG
408 // Kludge together the tags that we know should result from the above graph
409 std::stringstream str0, str1, str2;
410 str0 << ann0->name() << ann0->unique_id();
411 str1 << ann1->name() << ann1->unique_id();
412 str2 << ann2->name() << ann2->unique_id();