blob: 25fb69891ece3a3c400f2f4b091e5d0941e6437e [file] [log] [blame]
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -07001/*
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 Liao21d28f52012-06-12 05:55:00 -070017#include "greenland/runtime_entry_points.h"
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070018
Shih-wei Liao21d28f52012-06-12 05:55:00 -070019#include "runtime_utils.h"
20#include "runtime_support.h"
21#include "thread_list.h"
22
23using namespace art;
24using namespace art::greenland;
25
26namespace {
27
28void art_test_suspend(Thread* thread) {
29 Runtime::Current()->GetThreadList()->FullSuspendCheck(thread);
30}
31
32} // anonymous namespace
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070033
34namespace art {
35namespace greenland {
36
Shih-wei Liao21d28f52012-06-12 05:55:00 -070037void InitThreadRuntimes(RuntimeEntryPoints* entry_points) {
38 entry_points->TestSuspend = art_test_suspend;
Shih-wei Liaoe94d9b22012-05-22 09:01:24 -070039}
40
41} // namespace greenland
42} // namespace art