diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-24 21:28:29 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-24 21:28:29 +0000 |
commit | 0f596b2a4ec68d082d82dad7f5c6a59ca445fc48 (patch) | |
tree | 23f21696aa11b869dee0bc9317cc1817a4bf75f5 /libdimension/dimension | |
parent | dfe61d045121068c0f4bf6240615cab2f9a7448d (diff) | |
download | dimension-0f596b2a4ec68d082d82dad7f5c6a59ca445fc48.tar.xz |
Fix const-correctness issues with dmnsn_progress*.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/progress.h | 9 |
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 */ |