Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

about MFXVideoCORE_SyncOperation

Wen_G_1
Beginner
325 Views

Hi,

I have one question regarding the SyncOpertion.

From the MediaSDK mannual, the usage is

mfxStatus MFXVideoCORE_SyncOperation(mfxSession session, mfxSyncPoint syncp, mfxU32 wait);

The description is as following:

"This function initiates execution of an asynchronous function not already started and returns the status code after the specified asynchronous operation completes. If waitis zero, the function returns immediately."

My question is: during the waiting period, is the CPU occupied, i.e., is the CPU keep querying the status of the operation in a loop? Or the CUP switch a different process/thread and will switch back the current process/thread once the operation is complete, just like wait for a event object in Windows?

Regards,

Wen

 

 

0 Kudos
1 Reply
Anthony_P_Intel
Employee
325 Views

Hi Wen,

The thread that makes the SyncOperation call will be blocked and context will be switched to other thread that is managing the video task(s). The method used to wait for completion is appropriate for the operating system and you should not see the CPU polling unnecessarily.

Reply