CogSyncObject ClassCognex VisionPro 9.24
Class used to synchronize access to VisionPro members. Multithreaded applications must provide an instance of this class to any edit controls sharing tools the application will be accessing from a non-GUI thread. It is the responsibility of the application to lock and unlock the CogSyncObject whenever it is accessing the tool.
Inheritance Hierarchy

System Object
  Cognex.VisionPro.Implementation CogSyncObject

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax

public class CogSyncObject

The CogSyncObject type exposes the following members.

Constructors

  NameDescription
Public methodCogSyncObject
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLock
Locks this object, blocking if necessary. Fires the Locked event if this object was previously unlocked.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTryLock
Try to lock this object immediately. If successful, and the object was previously unlocked, fire the Locked event.
Public methodUnlock
Unlocks this object and fires the Unlocked event if the calling thread has called this method as many times as it has called Lock  or TryLock .
Top
Properties

  NameDescription
Public propertyThreadID
Gets or sets a user-specified thread ID.
Top
Events

  NameDescription
Public eventLocked
This event is raised when this object is locked
Public eventUnlocked
This event is raised when this object is unlocked
Top
See Also