common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / vehicleservice / positioning_base_library / library / include / _pbWaitforsingleobject.h
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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
18 #ifndef POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBWAITFORSINGLEOBJECT_H_
19 #define POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBWAITFORSINGLEOBJECT_H_
20
21 #include <vehicle_service/positioning_base_library.h>
22
23 typedef enum {
24     PB_HANDLE_INVAL = 0,
25     PB_HANDLE_MUTEX,
26     PB_HANDLE_PROC_SEMAPHORE,
27     PB_HANDLE_EVENT,
28     PB_HANDLE_THREAD,
29     PB_HANDLE_PROCESS,
30
31     PB_HANDLE_KIND_MAX    /* Maximum value range check */
32 } HANDLE_KIND;
33
34 /* Prototype */
35 BOOL WaitObjectInit(void);          /* Initialization process for each process */
36 BOOL WaitObjectTerm(void);          /* Termination process for each process */
37 BOOL WaitObjectAdd(HANDLE h_obj, HANDLE_KIND l_kind);   /* Registration process */
38 BOOL WaitObjectDel(HANDLE h_obj);          /* Deletion process */
39
40 #endif   // POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBWAITFORSINGLEOBJECT_H_