public Status Upsert(ref Key key, ref Value desiredValue, Context userContext, long serialNo) { if (supportAsync) { UnsafeResumeThread(); } var status = fht.ContextUpsert(ref key, ref desiredValue, userContext, serialNo, ctx); if (supportAsync) { UnsafeSuspendThread(); } return(status); }
public Status Upsert(ref Key key, ref Value desiredValue, Context userContext, long serialNo) { if (SupportAsync) { UnsafeResumeThread(); } try { return(fht.ContextUpsert(ref key, ref desiredValue, userContext, serialNo, ctx)); } finally { if (SupportAsync) { UnsafeSuspendThread(); } } }