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
From skimming the sample source it looked to me like the samples are using an implementation that is incomplete. But since the sample snippet from the docs doesn't actually use the sample source, there is prob. more going on so I'll leave the interpretation to you.
Blame links with line numbers to quickly jump to the respective samples:
Good catch, the samples were assuming that the IFunctions implementation copies the new value to output, which SimpleFunctions did not. We have fixed SimpleFunctions to perform this copy to output. Note that you can always (recommended) write your own IFunctions implementation, extending from FunctionsBase or SimpleFunctions, for whatever behavior you desire. This commit fixes the issue for our in-built SimpleFunctions: 39af951 so that the samples work as they currently are.
These two samples run into a failed assertion around
Debug.Assert(output == value + 20);
.While this sample that is not using the
ref output
signature ofRMW
but does a separate.Read()
does not fail the assertion.From skimming the sample source it looked to me like the samples are using an implementation that is incomplete. But since the sample snippet from the docs doesn't actually use the sample source, there is prob. more going on so I'll leave the interpretation to you.
Blame links with line numbers to quickly jump to the respective samples:
Failing:
Not failing:
The text was updated successfully, but these errors were encountered: