29 lines
479 B
C++
29 lines
479 B
C++
/*
|
|
* 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_ */
|