diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-01-22 06:46:03 +0100 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-11 06:45:30 +0200 |
commit | 20bc9067c16c790172fbccb28043e1148040a5c1 (patch) | |
tree | d8c3a74b66c8abce82f7815cb04cf88d97b33227 /lib/libalpm/handle.h | |
parent | 2e63d6aa7fcdfd89f02758f02f5799a291405b40 (diff) | |
download | pacman-20bc9067c16c790172fbccb28043e1148040a5c1.tar.gz pacman-20bc9067c16c790172fbccb28043e1148040a5c1.tar.xz |
add _alpm_run_threaded
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'lib/libalpm/handle.h')
-rw-r--r-- | lib/libalpm/handle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h index 10a430ac..56f771c2 100644 --- a/lib/libalpm/handle.h +++ b/lib/libalpm/handle.h @@ -124,6 +124,7 @@ struct __alpm_handle_t { regex_t delta_regex; #ifdef HAVE_PTHREAD + int threads; pthread_mutex_t tlock_cb; pthread_mutex_t tlock_log; pthread_mutex_t tlock_task; @@ -145,6 +146,9 @@ alpm_errno_t _alpm_set_directory_option(const char *value, void _alpm_set_errno(alpm_handle_t *handle, alpm_errno_t err); +void _alpm_run_threaded(alpm_handle_t *handle, + void *(*function) (void *), void *arg); + #endif /* ALPM_HANDLE_H */ /* vim: set noet: */ |