Skip to content

Commit b836c59

Browse files
committed
uncrustify
1 parent 21d0b55 commit b836c59

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/test_mutex.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ TEST(test_mutex, pimutex_lockthread) {
9595
test_thread.join();
9696
}
9797

98-
template <class MutexClass>
99-
void priority_inheritance_test() {
98+
template<class MutexClass>
99+
void priority_inheritance_test()
100+
{
100101
MutexClass test_mutex;
101102
std::atomic<bool> end_low_prio_thread {false};
102103
std::atomic<bool> end_medium_prio_thread {false};
@@ -170,11 +171,9 @@ void priority_inheritance_test() {
170171
// if priority inheritance worked the mutex should not be locked anymore
171172
bool try_lock_result;
172173
int count = 0;
173-
while((try_lock_result = test_mutex.try_lock()) == false)
174-
{
174+
while ((try_lock_result = test_mutex.try_lock()) == false) {
175175
std::this_thread::sleep_for(1ms);
176-
if(count++ >= 20)
177-
{
176+
if (count++ >= 20) {
178177
EXPECT_TRUE(try_lock_result) << "Mutex should not be locked anymore.";
179178
break;
180179
}

0 commit comments

Comments
 (0)