Skip to content

Commit

Permalink
fixup! threads: move thread priority defines out of PlatformDefs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lrusak committed May 20, 2019
1 parent 15ae804 commit 0481fc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions xbmc/threads/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ class IRunnable;
// minimum as mandated by XTL
#define THREAD_MINSTACKSIZE 0x10000

const int THREAD_BASE_PRIORITY_LOWRT{15};
const int THREAD_BASE_PRIORITY_MAX{2};
const int THREAD_BASE_PRIORITY_MIN{-2};
const int THREAD_BASE_PRIORITY_IDLE{-15};
const int THREAD_PRIORITY_LOWEST{THREAD_BASE_PRIORITY_MIN};
const int THREAD_PRIORITY_BELOW_NORMAL{THREAD_PRIORITY_LOWEST + 1};
const int THREAD_PRIORITY_NORMAL{0};
const int THREAD_PRIORITY_HIGHEST{THREAD_BASE_PRIORITY_MAX};
const int THREAD_PRIORITY_ABOVE_NORMAL{THREAD_PRIORITY_HIGHEST - 1};

namespace XbmcThreads { class ThreadSettings; }

class CThread
Expand Down
10 changes: 10 additions & 0 deletions xbmc/threads/platform/pthreads/ThreadImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
#include <pthread.h>
#include <unistd.h>

const int THREAD_BASE_PRIORITY_LOWRT{15};
const int THREAD_BASE_PRIORITY_MAX{2};
const int THREAD_BASE_PRIORITY_MIN{-2};
const int THREAD_BASE_PRIORITY_IDLE{-15};
const int THREAD_PRIORITY_LOWEST{THREAD_BASE_PRIORITY_MIN};
const int THREAD_PRIORITY_BELOW_NORMAL{THREAD_PRIORITY_LOWEST + 1};
const int THREAD_PRIORITY_NORMAL{0};
const int THREAD_PRIORITY_HIGHEST{THREAD_BASE_PRIORITY_MAX};
const int THREAD_PRIORITY_ABOVE_NORMAL{THREAD_PRIORITY_HIGHEST - 1};

struct threadOpaque
{
pid_t LwpId;
Expand Down

0 comments on commit 0481fc8

Please sign in to comment.