MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/systemic/FlagStiker.hh

29 lines
551 B
C++
Raw Permalink Normal View History

2024-06-07 11:12:56 +03:00
/*
* FlagStiker.hh
*
* Created on: 18 янв. 2023 г.
* Author: titov
*/
#ifndef UMLIBRARY_SYSTEMIC_FLAGSTIKER_HH_
#define UMLIBRARY_SYSTEMIC_FLAGSTIKER_HH_
#include <atomic>
namespace systemic {
//!Модуль обеспечивает снятие флага по своему уничтожению.
class FlagStiker {
public:
FlagStiker(std::atomic_flag & flag);
//!Спустить флаг по выходу.
~FlagStiker();
private:
std::atomic_flag & flag;
};
}
#endif /* UMLIBRARY_SYSTEMIC_FLAGSTIKER_HH_ */