Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Shih-wei Liao | 21d28f5 | 2012-06-12 05:55:00 -0700 | [diff] [blame^] | 17 | #include "greenland/runtime_entry_points.h" |
Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 18 | |
Shih-wei Liao | 21d28f5 | 2012-06-12 05:55:00 -0700 | [diff] [blame^] | 19 | #include "runtime_utils.h" |
| 20 | #include "runtime_support.h" |
| 21 | #include "thread_list.h" |
| 22 | |
| 23 | using namespace art; |
| 24 | using namespace art::greenland; |
| 25 | |
| 26 | namespace { |
| 27 | |
| 28 | void art_test_suspend(Thread* thread) { |
| 29 | Runtime::Current()->GetThreadList()->FullSuspendCheck(thread); |
| 30 | } |
| 31 | |
| 32 | } // anonymous namespace |
Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 33 | |
| 34 | namespace art { |
| 35 | namespace greenland { |
| 36 | |
Shih-wei Liao | 21d28f5 | 2012-06-12 05:55:00 -0700 | [diff] [blame^] | 37 | void InitThreadRuntimes(RuntimeEntryPoints* entry_points) { |
| 38 | entry_points->TestSuspend = art_test_suspend; |
Shih-wei Liao | e94d9b2 | 2012-05-22 09:01:24 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | } // namespace greenland |
| 42 | } // namespace art |