Skip to content

Commit 220ca45

Browse files
committed
support: improve documentation of transaction manager
1 parent fdd6f1b commit 220ca45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/srsran/support/async/protocol_transaction_manager.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)