summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authortiter <[email protected]>2006-03-18 20:25:44 +0000
committertiter <[email protected]>2006-03-18 20:25:44 +0000
commit111307fa9186021aef60d28e6b707c93190d5407 (patch)
tree98f326a7656a80ae3c74b9d2cc9f0c0a0526fb9b /libhb/common.h
parent0531e628d2bf701202857411035c05a2b2544c58 (diff)
Simple threading change (~4% faster). Breaks pause/resume for now
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@40 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 61864e9c0..dea4a4800 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -322,6 +322,7 @@ struct hb_work_object_s
int id;
char * name;
+#ifdef __LIBHB__
int (* init) ( hb_work_object_t *, hb_job_t * );
int (* work) ( hb_work_object_t *, hb_buffer_t **,
hb_buffer_t ** );
@@ -333,11 +334,11 @@ struct hb_work_object_s
hb_work_private_t * private_data;
- hb_lock_t * lock;
- int used;
- uint64_t time;
+ hb_thread_t * thread;
+ volatile int * done;
hb_work_object_t * next;
+#endif
};
extern hb_work_object_t hb_sync;