All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
Pylon::AutoLock Class Reference

A scoped lock class to acquire and release a CLock upon creation and destruction. More...

#include <pylon/TypeMappings.h>

Detailed Description

A scoped lock class to acquire and release a CLock upon creation and destruction.

Use this class to created scoped lock. To acquire the lock just create a CAutoLock object. When the object will be destroyed it will automatically release the lock.

int SampleFunction(Pylon::CLock & lock)
{
// acquire lock
Pylon::AutoLock scopedLock(lock);
// perform operation requiring lock to be held here
return 1;
// lock will be released automatically when scopedLock goes out of scope and is destroyed
}
See Also
CLock

The documentation for this class was generated from the following file:

pylon 5.0.5
Copyright © 2006-2016 Basler AG (Thu Aug 11 2016 18:01:28)