summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/progress.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h
index 194ae83..a865c8f 100644
--- a/libdimension/dimension/progress.h
+++ b/libdimension/dimension/progress.h
@@ -38,8 +38,8 @@ typedef struct {
pthread_t thread;
/* Condition variable for waiting for a particular amount of progress */
- pthread_cond_t cond;
- pthread_mutex_t mutex;
+ pthread_cond_t *cond;
+ pthread_mutex_t *mutex;
} dmnsn_progress;
dmnsn_progress *dmnsn_new_progress();
@@ -49,12 +49,11 @@ void dmnsn_delete_progress(dmnsn_progress *progress);
addition to deleting `progress' */
int dmnsn_finish_progress(dmnsn_progress *progress);
-double dmnsn_get_progress(const dmnsn_progress* progress);
+double dmnsn_get_progress(const dmnsn_progress *progress);
+void dmnsn_wait_progress(const dmnsn_progress *progress, double prog);
void dmnsn_new_progress_element(dmnsn_progress *progress, unsigned int total);
void dmnsn_increment_progress(dmnsn_progress *progress);
void dmnsn_progress_done(dmnsn_progress *progress);
-void dmnsn_wait_progress(dmnsn_progress *progress, double prog);
-
#endif /* DIMENSION_PROGRESS_H */