MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/systemic/FlagStiker.hh
2024-06-07 11:12:56 +03:00

29 lines
551 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */