common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / vehicleservice / positioning_base_library / library / include / _pbInternalProc.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 #ifndef POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_
18 #define POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_
19
20 #define POSITIONINGBASELIBRARY_NON_FD       (-1)           //!< \~english invalid fd
21 #define POSITIONINGBASELIBRARY_MAP_NON_INIT (0)            //!< \~english init flag for mmap
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27     int32    InitMutexObject(pthread_mutex_t *p_st_mutex);
28
29     HANDLE    CreateSharedMemory(TCHAR* name, DWORD size);
30     HANDLE    OpenSharedMemory(TCHAR* name, DWORD size);
31     void    DeleteAllSharedMemory(void);
32     void*    GetSharedMemoryPtr(HANDLE h_shm);
33     void    CloseSharedMemory(HANDLE h_shm);
34     void    DeleteSharedMemory(TCHAR* name);
35     HANDLE    OpenSharedMemoryAtPhysical(DWORD physical_address, DWORD size, DWORD protect);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif  // POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_