You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using zero-copy API, the data_writer always succeeds to loan a sample even if it is using by data_reader. So the loan may be corrupted before return it.
Is it possible to let loan_sample return failed when all samples are received by reader without calling return_loan? Or I should verify the loan each time I finishing using by is_sample_valid?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using zero-copy API, the data_writer always succeeds to loan a sample even if it is using by data_reader. So the loan may be corrupted before return it.
Is it possible to let
loan_sample
return failed when all samples are received by reader without callingreturn_loan
? Or I should verify the loan each time I finishing using byis_sample_valid
?Beta Was this translation helpful? Give feedback.
All reactions