Commit 2ab1e4d0 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Documentation fixes

parent 190a201e
......@@ -173,6 +173,8 @@ int space_getsid(struct space *s, struct cell **ci, struct cell **cj,
*
* @param s The #space.
* @param c The #cell to recycle.
* @param rec_begin Pointer to the start of the list of cells to recycle.
* @param rec_end Pointer to the end of the list of cells to recycle.
*/
void space_rebuild_recycle_rec(struct space *s, struct cell *c,
struct cell **rec_begin, struct cell **rec_end) {
......@@ -1654,7 +1656,7 @@ void space_recycle(struct space *s, struct cell *c) {
* @param s The #space.
* @param list_begin Pointer to the first #cell in the linked list of
* cells joined by their @c next pointers.
* @param list_begin Pointer to the last #cell in the linked list of
* @param list_end Pointer to the last #cell in the linked list of
* cells joined by their @c next pointers. It is assumed that this
* cell's @c next pointer is @c NULL.
*/
......
......@@ -90,7 +90,7 @@ void threadpool_init(struct threadpool *tp, int num_threads) {
/* Initialize the thread counters. */
tp->num_threads = num_threads;
tp->num_threads_waiting = 0;
/* If there is only a single thread, do nothing more as of here as
we will just do work in the (blocked) calling thread. */
if (num_threads == 1) return;
......@@ -147,7 +147,7 @@ void threadpool_init(struct threadpool *tp, int num_threads) {
void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,
void *map_data, size_t N, int stride, int chunk,
void *extra_data) {
/* If we just have a single thread, call the map function directly. */
if (tp->num_threads == 1) {
map_function(map_data, N, extra_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment