Skip to content

Commit b9a2fd1

Browse files
committed
Format My Changes
1 parent 78ae726 commit b9a2fd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Os/Posix/Task.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include <cstring>
1010

1111
#include "Fw/Logger/Logger.hpp"
12-
#include "Fw/Types/StringUtils.hpp"
1312
#include "Fw/Types/Assert.hpp"
13+
#include "Fw/Types/StringUtils.hpp"
1414
#include "Os/Posix/Task.hpp"
1515
#include "Os/Posix/error.hpp"
1616
#include "Os/Task.hpp"
@@ -130,6 +130,7 @@ int set_task_name(pthread_t thread, const Os::Task::Arguments& arguments) {
130130

131131
status = pthread_setname_np(thread, name_sixteen_capped);
132132
#else
133+
133134
Fw::Logger::log("[WARNING] %s setting thread name is only available with GNU pthreads\n",
134135
const_cast<CHAR*>(arguments.m_name.toChar()));
135136
#endif
@@ -161,8 +162,7 @@ Os::Task::Status PosixTask::create(const Os::Task::Arguments& arguments,
161162
pthread_status =
162163
pthread_create(&handle.m_task_descriptor, &attributes, pthread_entry_wrapper, arguments.m_routine_argument);
163164
}
164-
if ((expect_permission) &&
165-
(pthread_status == PosixTaskHandle::SUCCESS)) {
165+
if ((expect_permission) && (pthread_status == PosixTaskHandle::SUCCESS)) {
166166
pthread_status = set_task_name(handle.m_task_descriptor, arguments);
167167
}
168168
// Successful execution of all precious steps will result in a valid task handle

0 commit comments

Comments
 (0)