git-svn-id: svn://db.shs.com.ru/pip@858 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
27 lines
483 B
C++
27 lines
483 B
C++
//
|
|
// Created by fomenko on 25.09.2019.
|
|
//
|
|
|
|
#ifndef AWRCANFLASHER_PICONDITIONLOCK_H
|
|
#define AWRCANFLASHER_PICONDITIONLOCK_H
|
|
|
|
#include <pimutex.h>
|
|
#include <piinit.h>
|
|
|
|
class PIP_EXPORT PIConditionLock {
|
|
public:
|
|
explicit PIConditionLock();
|
|
~PIConditionLock();
|
|
|
|
void lock();
|
|
void unlock();
|
|
bool tryLock();
|
|
void* handle();
|
|
private:
|
|
NO_COPY_CLASS(PIConditionLock)
|
|
PRIVATE_DECLARATION
|
|
};
|
|
|
|
|
|
#endif //AWRCANFLASHER_PICONDITIONLOCK_H
|