Table of Contents

Class ParallelHelper

Namespace
CADability
Assembly
CADability.dll

Helper for code running in parallel: LockMultipleObjects(params object[]) acquires the monitors of several objects and releases them when the returned object is disposed. All callers must pass the objects in the same order (e.g. sorted by an id), because the locks are taken in the given order and no deadlock avoidance is done. Used when the faces of a STEP file are built in parallel. Internal helper, not an entry point of the API.

public class ParallelHelper
Inheritance
ParallelHelper
Inherited Members

Constructors

ParallelHelper()

public ParallelHelper()

Methods

LockMultipleObjects(params object[])

public static IDisposable LockMultipleObjects(params object[] toLock)

Parameters

toLock object[]

Returns

IDisposable