AcknowledgementType Checkable::GetAcknowledgement(void)
{
- ASSERT(OwnsLock());
-
AcknowledgementType avalue = static_cast<AcknowledgementType>(GetAcknowledgementRaw());
if (avalue != AcknowledgementNone) {
void Checkable::AcknowledgeProblem(const String& author, const String& comment, AcknowledgementType type, bool notify, double expiry, const MessageOrigin& origin)
{
- {
- ObjectLock olock(this);
-
- SetAcknowledgementRaw(type);
- SetAcknowledgementExpiry(expiry);
- }
+ SetAcknowledgementRaw(type);
+ SetAcknowledgementExpiry(expiry);
if (notify)
OnNotificationsRequested(this, NotificationAcknowledgement, GetLastCheckResult(), author, comment);
void Checkable::ClearAcknowledgement(const MessageOrigin& origin)
{
- ASSERT(OwnsLock());
-
SetAcknowledgementRaw(AcknowledgementNone);
SetAcknowledgementExpiry(0);