Beispiel #1
0
 public static void Cleanup(ref DependencyValidator data)
 {
     fixed(DependencyValidator *_data = &data)
     {
         DependencyValidator_Cleanup(_data);
     }
 }
Beispiel #2
0
 // Allocate memory for resources with known usage semantics.
 // Excludes dynamic safety handles which are unknown and determined at runtime.
 public static void AllocateKnown(ref DependencyValidator data, int numReadOnly, int numWritable, int numDeallocate)
 {
     fixed(DependencyValidator *_data = &data)
     {
         DependencyValidator_AllocateKnown(_data, numReadOnly, numWritable, numDeallocate);
     }
 }
Beispiel #3
0
        // Checks deferred array ownership
        public static void ValidateDeferred(ref DependencyValidator data, void *deferredHandle)
        {
            fixed(DependencyValidator *_data = &data)
            {
                DependencyValidator_ValidateDeferred(_data, deferredHandle);
            }

            ExceptionReporter.Check();
        }
Beispiel #4
0
        public static void UpdateDependencies(ref DependencyValidator data, ref JobHandle handle, int jobNameOffset)
        {
            fixed(DependencyValidator *_data = &data)
            {
                fixed(JobHandle *_handle = &handle)
                {
                    DependencyValidator_UpdateDependencies(_data, _handle, jobNameOffset);
                }
            }

            ExceptionReporter.Check();
        }
Beispiel #5
0
        // Checks dependencies and aliasing
        public static void ValidateScheduleSafety(ref DependencyValidator data, ref JobHandle dependsOn, int jobNameOffset)
        {
            fixed(DependencyValidator *_data = &data)
            {
                fixed(JobHandle *_dependsOn = &dependsOn)
                {
                    DependencyValidator_ValidateScheduleSafety(_data, _dependsOn, jobNameOffset);
                }
            }

            ExceptionReporter.Check();
        }
Beispiel #6
0
        public static void RecordAndSanityCheckDynamic(ref DependencyValidator data, ref AtomicSafetyHandle firstHandle, int fieldNameBlobOffset, int jobNameOffset, int handleCountReadOnly, int handleCountWritable, int handleCountForceReadOnly)
        {
            fixed(DependencyValidator *_data = &data)
            {
                fixed(AtomicSafetyHandle *_firstHandle = &firstHandle)
                {
                    DependencyValidator_RecordAndSanityCheckDynamic(_data, _firstHandle, fieldNameBlobOffset, jobNameOffset, handleCountReadOnly, handleCountWritable, handleCountForceReadOnly);
                }
            }

            ExceptionReporter.Check();
        }
Beispiel #7
0
        public static void RecordAndSanityCheckWritable(ref DependencyValidator data, ref AtomicSafetyHandle handle, int fieldNameBlobOffset, int jobNameOffset)
        {
            fixed(DependencyValidator *_data = &data)
            {
                fixed(AtomicSafetyHandle *_handle = &handle)
                {
                    DependencyValidator_RecordAndSanityCheckWritable(_data, _handle, fieldNameBlobOffset, jobNameOffset);
                }
            }

            ExceptionReporter.Check();
        }
Beispiel #8
0
 public static void RecordDeallocate(ref DependencyValidator data, ref AtomicSafetyHandle handle)
 {
     data.DeallocateNodePtr[data.DeallocateNodeCount++] = handle.nodePtr;
 }