summaryrefslogtreecommitdiff
path: root/rpmio/rpmsq.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-04-07 12:05:35 +0000
committerjbj <devnull@localhost>2003-04-07 12:05:35 +0000
commitf60ec855de0d6bfd29325fcb73b2901780e72e3d (patch)
treea47ae7163e358f6a60e22f7a05d14ddd43f1690c /rpmio/rpmsq.h
parent0bb715a528359c01b6077f850ab0bc2e0f5e8c55 (diff)
downloadlibrpm-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.h22
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 @*/;