Skip to content

Commit

Permalink
fix Tests / Test Suites - Linux (tsan) ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xylophone21 committed Nov 1, 2021
1 parent e0c7947 commit e05557a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/include/platform/internal/GenericPlatformManagerImpl_POSIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ CHIP_ERROR GenericPlatformManagerImpl_POSIX<ImplClass>::_InitChipStack()
template <class ImplClass>
void GenericPlatformManagerImpl_POSIX<ImplClass>::_LockChipStack()
{
#if CHIP_STACK_LOCK_TRACKING_ENABLED
if (mChipStackIsLocked)
{
ChipLogError(DeviceLayer, "_LockChipStack may error status");
}
#endif

int err = pthread_mutex_lock(&mChipStackLock);
assert(err == 0);

Expand All @@ -94,13 +87,6 @@ void GenericPlatformManagerImpl_POSIX<ImplClass>::_LockChipStack()
template <class ImplClass>
bool GenericPlatformManagerImpl_POSIX<ImplClass>::_TryLockChipStack()
{
#if CHIP_STACK_LOCK_TRACKING_ENABLED
if (mChipStackIsLocked)
{
ChipLogError(DeviceLayer, "_TryLockChipStack may error status");
}
#endif

bool locked = (pthread_mutex_trylock(&mChipStackLock) == 0);
#if CHIP_STACK_LOCK_TRACKING_ENABLED
if (locked)
Expand Down

0 comments on commit e05557a

Please sign in to comment.