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
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
The CogSyncObject type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogSyncObject |
Methods
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Lock |
Locks this object, blocking if necessary. Fires the
Locked
event if this object was previously unlocked.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| TryLock |
Try to lock this object immediately. If successful, and the object
was previously unlocked, fire the
Locked
event.
| |
| Unlock |
Properties
| Name | Description | |
|---|---|---|
| ThreadID |
Gets or sets a user-specified thread ID.
|
Events
| Name | Description | |
|---|---|---|
| Locked |
This event is raised when this object is locked
| |
| Unlocked |
This event is raised when this object is unlocked
|
See Also