I'm not one hundred percent sure what the benefit of "LIFO" (regarding threads) in the IOCP is. I guess the last thread that comes back to the "LIFO queue" can be used with less "overhead" than the others. (Correct me if I'm wrong.)
Let's say we have 10 threads in this "LIFO queue". No.10 is the latest (first to go out if there is completion). No.1 is the last one out and probably requires the most "overhead"?
But before No.1 came back to the queue, it called a "non-blocking function that uses a callback when it's finished". "Callsbacks" usually calls the thread that called them in the first place.
That should mean that even though there are better threads (fresher/more recent) to choose from the "LIFO-queue", no.1 still gets activated when it's time to run the callback function.
So I mostly wonder, how do I make callbacks that work in harmony with the "LIFO-queue"?
Best regards Arre