コード例 #1
0
 /// <inheritdoc />
 public void CriticalSection(CriticalSectionPipelineOp criticalSectionOp)
 {
     if (inCriticalSection)
     {
         if (criticalSectionOp.InCriticalSection)
         {
             Debug.LogError("CriticalSectionPipelineBlock received critical section start during another critical section");
         }
         else
         {
             inCriticalSection = false;
             ReleaseCriticalSectionOps();
         }
     }
     else
     {
         if (criticalSectionOp.InCriticalSection)
         {
             inCriticalSection = true;
         }
         else
         {
             Debug.LogError("CriticalSectionPipelineBlock received critical section stop outside a critical section");
         }
     }
 }
コード例 #2
0
 /// <inheritdoc />
 public void CriticalSection(CriticalSectionPipelineOp criticalSectionOp)
 {
 }