1e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes/* 2e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * Copyright (C) 2011 The Android Open Source Project 3e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * 4e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License"); 5e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * you may not use this file except in compliance with the License. 6e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * You may obtain a copy of the License at 7e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * 8e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 9e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * 10e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * Unless required by applicable law or agreed to in writing, software 11e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 12e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * See the License for the specific language governing permissions and 14e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes * limitations under the License. 15e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes */ 16e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 17e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes#include "os.h" 18e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 19e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes#include "Dalvik.h" 20e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 21e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughesint os_raiseThreadPriority() 22e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes{ 23e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes return 0; 24e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes} 25e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 26e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughesvoid os_lowerThreadPriority(int oldThreadPriority) 27e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes{ 28e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes // Do nothing. 29e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes} 30e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 31e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughesvoid os_changeThreadPriority(Thread* thread, int newPriority) 32e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes{ 33e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes // Do nothing. 34e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes} 35e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes 36e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughesint os_getThreadPriorityFromSystem() 37e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes{ 38e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes return THREAD_NORM_PRIORITY; 39e6c0ef210ee6c62cf4c63d50c04f451d5fa505f5Elliott Hughes} 40