File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments