mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
24 lines
332 B
C++
24 lines
332 B
C++
#pragma once
|
|
|
|
namespace Bun {
|
|
|
|
class SigintReceiver {
|
|
public:
|
|
SigintReceiver() = default;
|
|
|
|
void setSigintReceived(bool value = true)
|
|
{
|
|
m_sigintReceived = value;
|
|
}
|
|
|
|
bool getSigintReceived()
|
|
{
|
|
return m_sigintReceived;
|
|
}
|
|
|
|
protected:
|
|
bool m_sigintReceived = false;
|
|
};
|
|
|
|
} // namespace Bun
|