18 lines
397 B
C++
18 lines
397 B
C++
#include <hex/ui/toast.hpp>
|
|
#include <hex/helpers/auto_reset.hpp>
|
|
|
|
namespace hex::impl {
|
|
|
|
[[nodiscard]] std::list<std::unique_ptr<ToastBase>> &ToastBase::getQueuedToasts() {
|
|
static AutoReset<std::list<std::unique_ptr<ToastBase>>> queuedToasts;
|
|
|
|
return queuedToasts;
|
|
}
|
|
|
|
std::mutex& ToastBase::getMutex() {
|
|
static std::mutex mutex;
|
|
|
|
return mutex;
|
|
}
|
|
|
|
} |