MISC 1: make IOThread input and output queues returned as ThreadQueueBase*, not void*, cleaner.

then use static_cast for downcasts, because we know what we are doing
This commit is contained in:
vsonnier
2016-06-01 19:42:11 +02:00
parent 41ca39eab7
commit 357dcc967b
9 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -115,9 +115,9 @@ public:
virtual void onBindInput(std::string name, ThreadQueueBase* threadQueue);
void setInputQueue(std::string qname, ThreadQueueBase *threadQueue);
void *getInputQueue(std::string qname);
ThreadQueueBase *getInputQueue(std::string qname);
void setOutputQueue(std::string qname, ThreadQueueBase *threadQueue);
void *getOutputQueue(std::string qname);
ThreadQueueBase *getOutputQueue(std::string qname);
protected:
std::map<std::string, ThreadQueueBase *, map_string_less> input_queues;