diff options
author | jbj <devnull@localhost> | 2003-04-07 12:05:35 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-07 12:05:35 +0000 |
commit | f60ec855de0d6bfd29325fcb73b2901780e72e3d (patch) | |
tree | a47ae7163e358f6a60e22f7a05d14ddd43f1690c /rpmio/rpmsq.h | |
parent | 0bb715a528359c01b6077f850ab0bc2e0f5e8c55 (diff) | |
download | librpm-tizen-f60ec855de0d6bfd29325fcb73b2901780e72e3d.tar.gz librpm-tizen-f60ec855de0d6bfd29325fcb73b2901780e72e3d.tar.bz2 librpm-tizen-f60ec855de0d6bfd29325fcb73b2901780e72e3d.zip |
Calibrated stopwatch using rdtsc.
Probes for digest/signature and rpmdb.
CVS patchset: 6734
CVS date: 2003/04/07 12:05:35
Diffstat (limited to 'rpmio/rpmsq.h')
-rw-r--r-- | rpmio/rpmsq.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/rpmio/rpmsq.h b/rpmio/rpmsq.h index 40b829029..3ad5eb182 100644 --- a/rpmio/rpmsq.h +++ b/rpmio/rpmsq.h @@ -123,12 +123,30 @@ pid_t rpmsqWait(rpmsq sq) /*@modifies sq, fileSystem, internalState @*/; /** - * Call a function in a thread synchronously. + * Call a function in a thread. * @param start function * @param arg function argument + * @return thread pointer (NULL on error) + */ +void * rpmsqThread(void * (*start) (void * arg), void * arg) + /*@globals internalState @*/ + /*@modifies internalState @*/; + +/** + * Wait for thread to terminate. + * @param thread thread * @return 0 on success */ -int rpmsqThread(void * (*start) (void * arg), void * arg) +int rpmsqJoin(/*@null@*/ void * thread) + /*@globals internalState @*/ + /*@modifies internalState @*/; + +/** + * Compare thread with current thread. + * @param thread thread + * @return 0 if not equal + */ +int rpmsqThreadEqual(/*@null@*/ void * thread) /*@globals internalState @*/ /*@modifies internalState @*/; |