Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
2ab1e4d0
Commit
2ab1e4d0
authored
Dec 14, 2016
by
Matthieu Schaller
Browse files
Documentation fixes
parent
190a201e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
2ab1e4d0
...
...
@@ -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.
*/
...
...
src/threadpool.c
View file @
2ab1e4d0
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment