Ivan
Ivan

Reputation: 1455

Is vxCopyUserDataObject thread safe?

I'm calling vxCopyUserDataObject from an independent thread (no graphs in this thread) using a user input.

This function has the following signature:


VX_API_ENTRY vx_status VX_API_CALL vxMapUserDataObject  (   
    vx_user_data_object      user_data_object,
    vx_size     offset,
    vx_size     size,
    vx_map_id *     map_id,
    void **     ptr,
    vx_enum     usage,
    vx_enum     mem_type,
    vx_uint32   flags 
)   

The graph writes on the user_data_object at every execution.

Is this thread function safe? Can there be a race condition if the graph is writting at the same time that I call vxCopyUserDataObject? If yes, how can I avoid it?

Upvotes: 0

Views: 57

Answers (0)

Related Questions