Пример #1
0
 public Status Read(ref Key key, ref Input input, ref Output output, Context userContext, long serialNo)
 {
     if (supportAsync) UnsafeResumeThread();
     var status = fht.ContextRead(ref key, ref input, ref output, userContext, serialNo, ctx);
     if (supportAsync) UnsafeSuspendThread();
     return status;
 }
Пример #2
0
 public Status Read(ref Key key, ref Input input, ref Output output, Context userContext, long serialNo)
 {
     if (SupportAsync)
     {
         UnsafeResumeThread();
     }
     try
     {
         return(fht.ContextRead(ref key, ref input, ref output, userContext, FasterSession, serialNo, ctx));
     }
     finally
     {
         if (SupportAsync)
         {
             UnsafeSuspendThread();
         }
     }
 }