xref: /aosp_15_r20/external/libhevc/encoder/osal_cond_var.h (revision c83a76b084498d55f252f48b2e3786804cdf24b7)
1*c83a76b0SSuyog Pawar /******************************************************************************
2*c83a76b0SSuyog Pawar  *
3*c83a76b0SSuyog Pawar  * Copyright (C) 2018 The Android Open Source Project
4*c83a76b0SSuyog Pawar  *
5*c83a76b0SSuyog Pawar  * Licensed under the Apache License, Version 2.0 (the "License");
6*c83a76b0SSuyog Pawar  * you may not use this file except in compliance with the License.
7*c83a76b0SSuyog Pawar  * You may obtain a copy of the License at:
8*c83a76b0SSuyog Pawar  *
9*c83a76b0SSuyog Pawar  * http://www.apache.org/licenses/LICENSE-2.0
10*c83a76b0SSuyog Pawar  *
11*c83a76b0SSuyog Pawar  * Unless required by applicable law or agreed to in writing, software
12*c83a76b0SSuyog Pawar  * distributed under the License is distributed on an "AS IS" BASIS,
13*c83a76b0SSuyog Pawar  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*c83a76b0SSuyog Pawar  * See the License for the specific language governing permissions and
15*c83a76b0SSuyog Pawar  * limitations under the License.
16*c83a76b0SSuyog Pawar  *
17*c83a76b0SSuyog Pawar  *****************************************************************************
18*c83a76b0SSuyog Pawar  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19*c83a76b0SSuyog Pawar */
20*c83a76b0SSuyog Pawar 
21*c83a76b0SSuyog Pawar /*****************************************************************************/
22*c83a76b0SSuyog Pawar /*                                                                           */
23*c83a76b0SSuyog Pawar /*  File Name         : osal_cond_var.h                                      */
24*c83a76b0SSuyog Pawar /*                                                                           */
25*c83a76b0SSuyog Pawar /*  Description       : This file contains OSAL Conditional Variable handle  */
26*c83a76b0SSuyog Pawar /*                      structure definition.                                */
27*c83a76b0SSuyog Pawar /*                                                                           */
28*c83a76b0SSuyog Pawar /*  List of Functions : None                                                 */
29*c83a76b0SSuyog Pawar /*                                                                           */
30*c83a76b0SSuyog Pawar /*  Issues / Problems : None                                                 */
31*c83a76b0SSuyog Pawar /*                                                                           */
32*c83a76b0SSuyog Pawar /*  Revision History  :                                                      */
33*c83a76b0SSuyog Pawar /*                                                                           */
34*c83a76b0SSuyog Pawar /*         DD MM YYYY   Author(s)       Changes (Describe the changes made)  */
35*c83a76b0SSuyog Pawar /*         05 09 2006   Ittiam          Draft                                */
36*c83a76b0SSuyog Pawar /*                                                                           */
37*c83a76b0SSuyog Pawar /*****************************************************************************/
38*c83a76b0SSuyog Pawar 
39*c83a76b0SSuyog Pawar #ifndef OSAL_COND_VAR_H
40*c83a76b0SSuyog Pawar #define OSAL_COND_VAR_H
41*c83a76b0SSuyog Pawar 
42*c83a76b0SSuyog Pawar typedef struct
43*c83a76b0SSuyog Pawar {
44*c83a76b0SSuyog Pawar     pthread_cond_t cond_var; /* Mutex Identifier                     */
45*c83a76b0SSuyog Pawar     void *mmr_handle; /* Pointer to memory manager handle     */
46*c83a76b0SSuyog Pawar     osal_t *hdl; /* Associated OSAL handle               */
47*c83a76b0SSuyog Pawar } cond_var_handle_t;
48*c83a76b0SSuyog Pawar 
49*c83a76b0SSuyog Pawar #endif /* OSAL_COND_VAR_H */
50