Files
huangyu 993f4884aa Refactor mutex, library loader and complement Windows thread API
Signed-off-by: huangyu <huangyu76@huawei.com>
Change-Id: I662463d239f6d050ef6908de70e0e98cf85bf2a6
2022-06-10 16:25:49 +08:00

27 lines
926 B
C++

/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef PANDA_LIBPANDABASE_OS_WINDOWS_THREAD_H_
#define PANDA_LIBPANDABASE_OS_WINDOWS_THREAD_H_
namespace panda::os::thread {
using DWORD = unsigned long;
int GetPriority(DWORD thread_id);
int SetPriority(DWORD thread_id, int prio);
} // namespace panda::os::thread
#endif // PANDA_LIBPANDABASE_OS_WINDOWS_THREAD_H_