@@ -146,7 +146,7 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
146146 // / and copying the state of the current object to it.
147147 // / @return A pointer to a new `ClassType` instance.
148148 // / @post The caller is responsible for deleting the clone object.
149- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
149+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
150150 virtual ClassType* Clone () const override {
151151 return new (std::nothrow) ClassType (*this );
152152 }
@@ -220,7 +220,7 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
220220 // / @details Invoke delegate function asynchronously and do not wait for return value.
221221 // / This function is called by the source thread. Dispatches the delegate data into the
222222 // / destination thread message queue. `Invoke()` must be called by the destination
223- // / thread to invoke the target function.
223+ // / thread to invoke the target function. Always safe to call.
224224 // /
225225 // / The `DelegateAsyncMsg` duplicates and copies the function arguments into heap memory.
226226 // / The source thread is not required to place function arguments into the heap. The delegate
@@ -230,7 +230,7 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
230230 // / @return A default return value. The return value is *not* returned from the
231231 // / target function. Do not use the return value.
232232 // / @post Do not use the return value as its not valid.
233- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
233+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
234234 virtual RetType operator ()(Args... args) override {
235235 if (this ->Empty ())
236236 return RetType ();
@@ -272,7 +272,7 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
272272 }
273273
274274 // / @brief Invoke delegate function asynchronously. Do not wait for return value.
275- // / Called by the source thread.
275+ // / Called by the source thread. Always safe to call.
276276 // / @param[in] args The function arguments, if any.
277277 void AsyncInvoke (Args... args) {
278278 operator ()(std::forward<Args>(args)...);
@@ -446,7 +446,7 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
446446 // / and copying the state of the current object to it.
447447 // / @return A pointer to a new `ClassType` instance.
448448 // / @post The caller is responsible for deleting the clone object.
449- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
449+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
450450 virtual ClassType* Clone () const override {
451451 return new (std::nothrow) ClassType (*this );
452452 }
@@ -520,7 +520,7 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
520520 // / @details Invoke delegate function asynchronously and do not wait for return value.
521521 // / This function is called by the source thread. Dispatches the delegate data into the
522522 // / destination thread message queue. `Invoke()` must be called by the destination
523- // / thread to invoke the target function.
523+ // / thread to invoke the target function. Always safe to call.
524524 // /
525525 // / The `DelegateAsyncMsg` duplicates and copies the function arguments into heap memory.
526526 // / The source thread is not required to place function arguments into the heap. The delegate
@@ -530,7 +530,7 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
530530 // / @return A default return value. The return value is *not* returned from the
531531 // / target function. Do not use the return value.
532532 // / @post Do not use the return value as its not valid.
533- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
533+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
534534 virtual RetType operator ()(Args... args) override {
535535 if (this ->Empty ())
536536 return RetType ();
@@ -572,7 +572,7 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
572572 }
573573
574574 // / @brief Invoke delegate function asynchronously. Do not wait for return value.
575- // / Called by the source thread.
575+ // / Called by the source thread. Always safe to call.
576576 // / @param[in] args The function arguments, if any.
577577 void AsyncInvoke (Args... args) {
578578 operator ()(std::forward<Args>(args)...);
@@ -687,7 +687,7 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
687687 // / and copying the state of the current object to it.
688688 // / @return A pointer to a new `ClassType` instance.
689689 // / @post The caller is responsible for deleting the clone object.
690- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
690+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
691691 virtual ClassType* Clone () const override {
692692 return new (std::nothrow) ClassType (*this );
693693 }
@@ -761,7 +761,7 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
761761 // / @details Invoke delegate function asynchronously and do not wait for return value.
762762 // / This function is called by the source thread. Dispatches the delegate data into the
763763 // / destination thread message queue. `Invoke()` must be called by the destination
764- // / thread to invoke the target function.
764+ // / thread to invoke the target function. Always safe to call.
765765 // /
766766 // / The `DelegateAsyncMsg` duplicates and copies the function arguments into heap memory.
767767 // / The source thread is not required to place function arguments into the heap. The delegate
@@ -771,7 +771,7 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
771771 // / @return A default return value. The return value is *not* returned from the
772772 // / target function. Do not use the return value.
773773 // / @post Do not use the return value as its not valid.
774- // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS no defined.
774+ // / @throws std::bad_alloc If dynamic memory allocation fails and USE_ASSERTS not defined.
775775 virtual RetType operator ()(Args... args) override {
776776 if (this ->Empty ())
777777 return RetType ();
@@ -813,7 +813,7 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
813813 }
814814
815815 // / @brief Invoke delegate function asynchronously. Do not wait for return value.
816- // / Called by the source thread.
816+ // / Called by the source thread. Always safe to call.
817817 // / @param[in] args The function arguments, if any.
818818 void AsyncInvoke (Args... args) {
819819 operator ()(std::forward<Args>(args)...);
0 commit comments