template class mrpt::LockHelper

Overview

Auxiliary helper structure for mrpt::lockHelper()

#include <mrpt/core/lock_helper.h>

template <class T>
class LockHelper
{
public:
    // construction

    LockHelper(const Tnc* l);
    LockHelper(const LockHelper& o);
    LockHelper(LockHelper&& o);

    // methods

    LockHelper& operator = (const LockHelper& o);
    LockHelper& operator = (LockHelper&& o);
    void unlock();
};

Methods

void unlock()

Can be used to unlock the mutex before this object dtor.

[New in MRPT 2.1.5]