diff options
author | jstebbins <[email protected]> | 2012-05-17 19:51:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-05-17 19:51:35 +0000 |
commit | 5a0673d1572fdfcd00063cfa9dffba907c808056 (patch) | |
tree | b55af15b31edc30a69bf2c17818f6ea3565f9a9a /libhb/ports.h | |
parent | d005ce0b526630bd428c1e5a466b0a96f0b8ecba (diff) |
libhb: tasksets API provided by scsiguy
This is an easier to use API for launching multithreaded tasks. And it is more
portable since it does not rely on undefined/implementation specific behavior
of POSIX mutexes. That is, the ability for one thread to unlock a mutex owned
by another thread.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4685 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/ports.h')
-rw-r--r-- | libhb/ports.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/ports.h b/libhb/ports.h index 7b743c437..c1cadf785 100644 --- a/libhb/ports.h +++ b/libhb/ports.h @@ -62,7 +62,8 @@ typedef struct hb_thread_s hb_thread_t; # define HB_NORMAL_PRIORITY 0 #endif -hb_thread_t * hb_thread_init( char * name, void (* function)(void *), +typedef void (thread_func_t)(void *); +hb_thread_t * hb_thread_init( const char * name, thread_func_t *function, void * arg, int priority ); void hb_thread_close( hb_thread_t ** ); int hb_thread_has_exited( hb_thread_t * ); |