#Multithreading in receiving messages

7 messages · Page 1 of 1 (latest)

wheat stumpBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

little edge
#

Someone please helpnooo

crimson hearth
#

Just iterate over the vector, no need for a switch.

#

Alternatively use an std::map to find the right entry easier.

polar yarrow
#

Each chat in the messenger (in my specific case) is an std::vector object of a class
What?
Each chat is a std::vector<T>? What is T? Why isn't the entire thing just one Chat instance?

little edge
trail plinth
#

no one really gives a shit about your application... you're not likely to get much help by ranting about block chains or whatever the hell a messenger/chat is. try to keep it about data/algorythms, hashes, containers, c++ etc.