how to save ROI croped by dsexample Asynchronously?

i need to save croped image asynchronously while without slow down the stream.

for example, using cuda or openmp

NvDsMetaList *l_obj = NULL;
        NvDsObjectMeta *obj_meta = NULL;
#pragma omp parallel for
        for (l_obj = object_list; l_obj != NULL; l_obj = l_obj->next)
            save_to_desk(_cuda_crop((uint8) stream, ROI_w,Roi_h))

while in my mind, this code will block the stream.
i just want to ask is there any AIO just like libaio in linux??? Or Another way to speed up the save process ??

Thank u very much!!!Hope you have a greate life !!

i really need your help.

We are checking internally.

thank you very much!!

could you refer to In this crop will be asynchronosly performed inside the transform

i will try it. thank you

Hi jsbluecat,

Have you tried the suggestions? Any result can be shared?