blob: ad458eb70569a0cd180a1aefbe0445c3e27ebc4d [file] [log] [blame]
Tomasz Wasilczyk0d9dec22023-10-06 20:28:49 +00001/*
2 * Copyright (C) 2023 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
17#include "OS.h"
18
19#include <android-base/threads.h>
Tomasz Wasilczyk346f1042023-10-09 17:02:46 +000020#include <utils/misc.h>
Tomasz Wasilczyk0d9dec22023-10-06 20:28:49 +000021
22namespace android::binder::os {
23
24uint64_t GetThreadId() {
25#ifdef BINDER_RPC_SINGLE_THREADED
26 return 0;
27#else
28 return base::GetThreadId();
29#endif
30}
31
Tomasz Wasilczyk346f1042023-10-09 17:02:46 +000032bool report_sysprop_change() {
33 android::report_sysprop_change();
34 return true;
35}
36
Tomasz Wasilczyk0d9dec22023-10-06 20:28:49 +000037} // namespace android::binder::os