summaryrefslogtreecommitdiffstats
path: root/core/Work.h
blob: 8d3cfba1598a905a1bb8a7ddbe8a298c5ba814ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* $Id: Work.h,v 1.1 2003/11/03 12:08:01 titer Exp $

   This file is part of the HandBrake source code.
   Homepage: <http://handbrake.m0k.org/>.
   It may be used under the terms of the GNU General Public License. */

#ifndef HB_WORK_H
#define HB_WORK_H

#include "HandBrakeInternal.h"

#define HB_WORK_COMMON_MEMBERS \
    char   * name; \
    HBLock * lock; \
    int      used; \
    uint64_t time; \
    int      (*work) ( HBWork * );

void HBWorkLock( HBWork * );
void HBWorkWork( HBWork * );
void HBWorkUnlock( HBWork * );

HBWorkThread * HBWorkThreadInit( HBHandle *, HBTitle *, HBAudio *,
                                 HBAudio *, int firstThread );
void           HBWorkThreadClose( HBWorkThread ** );

#endif