diff --git a/emper/Fibril.hpp b/emper/Fibril.hpp index 759d0e19213d02c5155871b8de8a78e077fcd0ce..ba0320915a8cdf23cda73abac562e4089194e087 100644 --- a/emper/Fibril.hpp +++ b/emper/Fibril.hpp @@ -347,13 +347,21 @@ class Fibril : public AbstractFiber, public Logger<LogSubsystem::FIBRIL> { private: inline __attribute__((always_inline)) void syncLocked() { - if (activeChildrenCount == 0) return; + if (activeChildrenCount == 0) { + LOGD("sync: activeChildrenCount == 0, nothing to sync"); + return; + } + LOGD("sync: activeChildrenCount != 0, invoking doSync()"); membar(doSync()); } inline __attribute__((always_inline)) void syncWaitFree() { - if (reverseStealCount == 0) return; + if (reverseStealCount == 0) { + LOGD("sync: reverseStealCount == 0, nothing to sync"); + return; + } + LOGD("sync: reverseStealCount != 0, invoking doSync()"); membar(doSync());