Skip to content

Commit

Permalink
Merge pull request #793 from leapmotion/fix-sched_idle
Browse files Browse the repository at this point in the history
Fix a Build Error of Android
  • Loading branch information
codemercenary committed Oct 21, 2015
2 parents 8fde2da + 924d722 commit 18f4907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/autowiring/CoreThreadLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ void BasicThread::SetThreadPriority(ThreadPriority threadPriority) {

switch (threadPriority) {
case ThreadPriority::Idle:
//Android kernel(3.10.x) has not implemented SCHED_IDLE yet.
#ifndef __ANDROID__
policy = SCHED_IDLE;
#endif
percent = 0;
break;
case ThreadPriority::Lowest:
Expand Down

0 comments on commit 18f4907

Please sign in to comment.