Cpp scoped lock #199

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
5 participants
@vokimon

vokimon commented Feb 8, 2011

Using safer scoped lock in cpp wrapper (Resource Acquisition is Initialization idiom) and simplifying some methods using early exits which are simpler to do with scoped locks.

RyanGordon and others added some commits Dec 30, 2010

fix: cmake now skips cpp example according to the BUILD_EXAMPLE option
Signed-off-by: Kai Ritterbusch <kai.ritterbusch@gmx.de>
* Removing lvdemo.c. Only need to build the dll
* Much improved error handling, better and cleaner VI's and wrapper functionality
* Now uses IMAQ for image processing. Much more extensive library for machine vision.

Signed-off-By: Ryan Gordon <rygordon4@gmail.com>
David García Garzón
Using scoped locks in cpp wrapper
I added scoped locks to the Mutex class which use the RIIA idiom
to ensure that any lock is unlocked whatever the control path you
take. This enables the simplification of some methods by doing
early exists.

Signed-off-by: David García Garzón <david.garcia@barcelonamedia.org>
@qdot

This comment has been minimized.

Show comment Hide comment
@qdot

qdot Feb 15, 2011

Member

Cherry picked 27319a5 into unstable

Member

qdot commented Feb 15, 2011

Cherry picked 27319a5 into unstable

@piedar

This comment has been minimized.

Show comment Hide comment
@piedar

piedar Jun 15, 2013

Contributor

This has been in master for a while.

Contributor

piedar commented Jun 15, 2013

This has been in master for a while.

@piedar piedar closed this Jun 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment