thread_linux.cc revision 34e069606d6f1698cd3c33b39e72b79ae27e1c7b
18daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes/*
28daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * Copyright (C) 2011 The Android Open Source Project
38daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes *
48daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
58daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * you may not use this file except in compliance with the License.
68daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * You may obtain a copy of the License at
78daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes *
88daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
98daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes *
108daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * Unless required by applicable law or agreed to in writing, software
118daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
128daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * See the License for the specific language governing permissions and
148daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes * limitations under the License.
158daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes */
168daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes
178daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes#include "thread.h"
188daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes
198daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughesnamespace art {
208daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes
211bac54ffa933fbe9b92b62437577f2f4583eff1aElliott Hughesvoid Thread::DumpNativeStack(std::ostream&) const {
22ffb465f23d9549dd591e6aa62e9250523cb00233Elliott Hughes  // TODO: use glibc backtrace(3).
23ffb465f23d9549dd591e6aa62e9250523cb00233Elliott Hughes}
24ffb465f23d9549dd591e6aa62e9250523cb00233Elliott Hughes
258daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughesvoid Thread::SetNativePriority(int) {
268daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes  // Do nothing.
278daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes}
288daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes
298daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughesint Thread::GetNativePriority() {
3034e069606d6f1698cd3c33b39e72b79ae27e1c7bElliott Hughes  return kNormThreadPriority;
318daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes}
328daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes
338daa0929f08a3080ea64dbd4e997e72f411e6fc9Elliott Hughes}  // namespace art
34