diff options
Diffstat (limited to 'Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm')
-rw-r--r-- | Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm b/Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm index 597d450..70d0b3a 100644 --- a/Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm +++ b/Firestore/core/src/firebase/firestore/util/executor_libdispatch.mm @@ -16,6 +16,8 @@ #include "Firestore/core/src/firebase/firestore/util/executor_libdispatch.h" +#include "Firestore/core/src/firebase/firestore/util/hard_assert.h" + namespace firebase { namespace firestore { namespace util { @@ -55,7 +57,7 @@ void DispatchAsync(const dispatch_queue_t queue, std::function<void()>&& work) { } void DispatchSync(const dispatch_queue_t queue, std::function<void()> work) { - FIREBASE_ASSERT_MESSAGE( + HARD_ASSERT( GetCurrentQueueLabel() != GetQueueLabel(queue), "Calling DispatchSync on the current queue will lead to a deadlock."); @@ -176,8 +178,8 @@ void TimeSlot::Execute() { RemoveFromSchedule(); - FIREBASE_ASSERT_MESSAGE(tagged_.operation, - "TimeSlot contains an invalid function object"); + HARD_ASSERT(tagged_.operation, + "TimeSlot contains an invalid function object"); tagged_.operation(); } |