What i want to do is the fallowing: So i have 4 threads. and for each thread i create an IOCP. inside the thread function i wait on GetQueuedCompletionStatus(INIFINIT) to get a job and then process it and then go wait again.
So if i want to submit a job to a specific thread i just PostQueuedCompletionStatus on its IOCP.
But what i want is to have like a master IOCP and inside the thread func. i GetQueuedCompletionStatus on the master IOCP , so when i post job on master IOCP random thread gets the job and process it, but i still want to send specific jobs for specific thread. How can i do that? thanks! Thanks.
Aucun commentaire:
Enregistrer un commentaire