diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-04-21 23:00:26 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-04-21 23:00:26 -0400 |
commit | a7cd3703ea1ff4686d49888f014c746b56411fdf (patch) | |
tree | 7b4bc71c96ec1b30135343344ca0d0a7ba0a4437 /libdimension/threads.h | |
parent | f055b64c58b9ce96a59da99e8f388d63aa4b0244 (diff) | |
download | dimension-a7cd3703ea1ff4686d49888f014c746b56411fdf.tar.xz |
New DMNSN_INTERNAL tag.
Diffstat (limited to 'libdimension/threads.h')
-rw-r--r-- | libdimension/threads.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libdimension/threads.h b/libdimension/threads.h index 1ead66d..17019b0 100644 --- a/libdimension/threads.h +++ b/libdimension/threads.h @@ -40,8 +40,8 @@ typedef int dmnsn_thread_fn(void *ptr); * @param[in] nthreads The number of concurrent threads. * @return 0 on success, non-zero on failure. */ -typedef int dmnsn_concurrent_thread_fn(void *ptr, unsigned int thread, - unsigned int nthreads); +typedef int dmnsn_ccthread_fn(void *ptr, unsigned int thread, + unsigned int nthreads); /** * Create a thread that cleans up after itself on errors. @@ -49,8 +49,8 @@ typedef int dmnsn_concurrent_thread_fn(void *ptr, unsigned int thread, * @param[in] thread_fn The thread callback. * @param[in,out] arg The pointer to pass to the thread callback. */ -void dmnsn_new_thread(dmnsn_progress *progress, dmnsn_thread_fn *thread_fn, - void *arg); +DMNSN_INTERNAL void dmnsn_new_thread(dmnsn_progress *progress, + dmnsn_thread_fn *thread_fn, void *arg); /** * Run \p nthreads threads in parallel. @@ -59,7 +59,7 @@ void dmnsn_new_thread(dmnsn_progress *progress, dmnsn_thread_fn *thread_fn, * @param[in] nthreads The number of concurrent threads to run. * @return 0 if all threads were successful, and an error code otherwise. */ -int dmnsn_execute_concurrently(dmnsn_concurrent_thread_fn *thread_fn, - void *arg, unsigned int nthreads); +DMNSN_INTERNAL int dmnsn_execute_concurrently(dmnsn_ccthread_fn *ccthread_fn, + void *arg, unsigned int nthreads); #endif /* DIMENSION_IMPL_THREADS_H */ |