Pylon Logo Basler Logo
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 6.1.0
Copyright (c) 2006-2020 Basler AG (Mon Mar 16 2020 10:56:57)