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.