Utilities: Change return type for GetThreadId and SetThreadIOPriority to long

This commit is contained in:
Jonas Kvinge
2021-10-31 00:26:02 +02:00
parent 1ce8d2b31d
commit 5e7759b697
2 changed files with 4 additions and 4 deletions

View File

@@ -658,7 +658,7 @@ QString DecodeHtmlEntities(const QString &text) {
}
int SetThreadIOPriority(const IoPriority priority) {
long SetThreadIOPriority(const IoPriority priority) {
#ifdef Q_OS_LINUX
return syscall(SYS_ioprio_set, IOPRIO_WHO_PROCESS, GetThreadId(), 4 | priority << IOPRIO_CLASS_SHIFT);
@@ -671,7 +671,7 @@ int SetThreadIOPriority(const IoPriority priority) {
}
int GetThreadId() {
long GetThreadId() {
#ifdef Q_OS_LINUX
return syscall(SYS_gettid);