Closed zhangyaothu closed 2 years ago
When you use uxr_prepare_output_stream
you are asking the library to prepare the internal buffer to serialize a certain amount of data.
That's why the stream is locked but never unlocked (when the request is successful) because the expected serialization of data by the user should be protected by the same lock. So: when you call uxr_prepare_output_stream
and the return is successful (ret != UXR_INVALID_REQUEST_ID
) you are in charge of unlocking the stream with UXR_UNLOCK_STREAM_ID(session, stream_id);
after the serialization of the data.
Hello, I want to
run uxr_prepare_output_stream
anduxr_run_session_time
on two different task in FreeRTOS, which will make the application and the middleware seperate from each other.But I find that
uxr_run_time_timeout
is blocked when acquring stream id lock. The lock is locked when uxr_prepare_output_stream but never unlocked.I just commented the else branch and make it to unlock before return. I want to check if there are some errors I make or some suggestions to make it work.