STL container to pop() by priority?
Posted
by Pirate for Profit
on Stack Overflow
See other posts from Stack Overflow
or by Pirate for Profit
Published on 2010-04-24T23:12:51Z
Indexed on
2010/04/24
23:23 UTC
Read the original article
Hit count: 194
I'm writing a thread-pool for Qt as QRunnable
doesn't handle event loops in new threads.
Not too familiar with STL, what would be the best way to pop() something by priority? Priority should probably be a property of MyRunnable
imo, but I can always give that info to an STL container when adding the runnable to the queue.
© Stack Overflow or respective owner