Skip to content

Commit

Permalink
fixed linter failures
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kurien <jkurien@blackberry.com>
  • Loading branch information
joshua-qnx committed Mar 22, 2021
1 parent 40cfb17 commit 7f3ce25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bool configure_native_thread(T native_handle, ThreadPriority priority, int cpu_i
ret = thread_resume(mach_thread);
success &= (ret == KERN_SUCCESS);
}
#elif __QNXNTO__ // i.e., QNX platform
#elif __QNXNTO__ // i.e., QNX platform
sched_param params;
int policy;
success &= (pthread_getschedparam(native_handle, &policy, &params) == 0);
Expand All @@ -122,11 +122,11 @@ bool configure_native_thread(T native_handle, ThreadPriority priority, int cpu_i
}
// run_mask is a bit mask to set which cpu a thread runs on
// where each bit corresponds to a cpu core
long run_mask = 0x01;
int64_t run_mask = 0x01;
run_mask <<= cpu_id;

// Function used to change thread affinity of thread associated with native_handle
if (ThreadCtlExt(0, native_handle, _NTO_TCTL_RUNMASK, (void *)run_mask) == -1) {
if (ThreadCtlExt(0, native_handle, _NTO_TCTL_RUNMASK, reinterpret_cast<void*>(run_mask)) == -1) {
success &= 0;
} else {
success &= 1;
Expand Down

0 comments on commit 7f3ce25

Please sign in to comment.