File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
include/srsran/support/async Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,17 @@ class protocol_transaction_manager
102102 }
103103
104104 // / \brief Sets the result of a managed transaction with the provided transaction_id.
105+ // / \param[in] transaction_id Id of the transaction.
106+ // / \param[in] result Result of the transaction.
107+ // / \return True if result of the transaction was successfully set. False, if the transaction has already finished.
105108 template <typename U>
106- bool __attribute__ ((warn_unused_result)) set(unsigned transaction_id, U&& u )
109+ bool __attribute__ ((warn_unused_result)) set(unsigned transaction_id, U&& result )
107110 {
108111 if (transactions[transaction_id].is_set ()) {
109112 return false ;
110113 }
111114 running_timers[transaction_id].stop ();
112- transactions[transaction_id].set (std::forward<U>(u ));
115+ transactions[transaction_id].set (std::forward<U>(result ));
113116 return true ;
114117 }
115118
You can’t perform that action at this time.
0 commit comments