Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Are work items from the Timer Queue ( MFScheduleWorkItem ) and Long-Function Queue are serialized in any way with the Standard Queue ?

$
0
0

Hi,

are work items serialized between the Timer, Long-Function and Standard Queue ? I did a lot of tests and it seems so, as they never interfere with each other. When i put a scheduled work item on the Timer Queue, the callers callback always gets invoked while there is no dispatched work item from the Standard Queue for example.

But to make it 100 % safe i build a timer class that implements an IMFAsyncCallback and puts a wait item on the Timer Queue. On the callers callback i then can put the "real work item" onto the Standard Queue. But if the Timer Queue would be serialized with the Standard Queue ( which seems it is ) then i wouldnt need a timer class and can omit that step.

Regards

co0Kie



Viewing all articles
Browse latest Browse all 1079


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>