elliotwoods/VVVV.Nodes.EmguCV — Issue #25: Auto thread locks
Author: elliotwoods
Created: 2011-11-25 14:48:51+00:00
State: open

Currently the developer must lock the thread themselves within the process
this is performed automatically in the case of `GetImage(CVImage out)`, i.e. the lock is performed automatically during the copy/conversion
but when access is performed via CvMat then the user must lock manually

the locking could be performed by `IProcessor` (doesn't exist yet, i mean `ProcessFilter`, ProcessDestination`, etc)
but then we'd miss out on some opportunities to leave the image unlocked (e.g. if it only needs to be locked for a conversion)

so a suggestion could be:
Have `IInstanceAutoLock`
For these instances, the lock is kept throughout the whole of `Process()`
for ordinary instances, the locks are performed manually

also for a sanity check, i'm going to check the read lock of a CVImageInput when .CvMat is called