summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-07-14 20:14:01 -0600
committerTavian Barnes <tavianator@gmail.com>2010-07-14 20:21:53 -0600
commit69aa6e0ee0ca36bd8ea77135b62c4aac59c30f99 (patch)
tree38345886d75deb51ef3011ea92326ae39da84d81 /libdimension/dimension
parentdda43d0adc1fb7323a6578f61565275694364bbd (diff)
downloaddimension-69aa6e0ee0ca36bd8ea77135b62c4aac59c30f99.tar.xz
Don't expose the contents of struct dmnsn_progress.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/progress.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h
index 8b20ba0..0a7dce2 100644
--- a/libdimension/dimension/progress.h
+++ b/libdimension/dimension/progress.h
@@ -28,29 +28,7 @@
#ifndef DIMENSION_PROGRESS_H
#define DIMENSION_PROGRESS_H
-#include <pthread.h>
-
-/* A single element in an array for dmnsn_progress. Progress of this item is
- progress/total. */
-typedef struct {
- unsigned int progress, total;
-} dmnsn_progress_element;
-
-typedef struct {
- /* Array of progress elements. Progress is given by P(0), where
- P(i) = (elements[i].progress + P(i + 1))/elements[i].total. */
- dmnsn_array *elements;
-
- /* The worker thread */
- pthread_t thread;
-
- /* Read-write synchronization */
- pthread_rwlock_t *rwlock;
-
- /* Condition variable for waiting for a particular amount of progress */
- pthread_cond_t *cond;
- pthread_mutex_t *mutex;
-} dmnsn_progress;
+typedef struct dmnsn_progress dmnsn_progress;
/* Allocate a new progress object */
dmnsn_progress *dmnsn_new_progress();