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
7e62ff74
Commit
7e62ff74
authored
Jun 14, 2016
by
Matthieu Schaller
Browse files
Formatting
parent
699df7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/queue.c
View file @
7e62ff74
...
...
@@ -43,7 +43,6 @@
*
* @param q The #queue, assumed to be locked.
*/
void
queue_get_incoming
(
struct
queue
*
q
)
{
int
*
tid
=
q
->
tid
;
...
...
@@ -98,7 +97,6 @@ void queue_get_incoming(struct queue *q) {
* @param q The #queue.
* @param t The #task.
*/
void
queue_insert
(
struct
queue
*
q
,
struct
task
*
t
)
{
/* Get an index in the DEQ. */
const
int
ind
=
atomic_inc
(
&
q
->
last_incoming
)
%
queue_incoming_size
;
...
...
@@ -130,7 +128,6 @@ void queue_insert(struct queue *q, struct task *t) {
* @param q The #queue.
* @param tasks List of tasks to which the queue indices refer to.
*/
void
queue_init
(
struct
queue
*
q
,
struct
task
*
tasks
)
{
/* Allocate the task list if needed. */
...
...
@@ -166,7 +163,6 @@ void queue_init(struct queue *q, struct task *tasks) {
* @param prev The previous #task extracted from this #queue.
* @param blocking Block until access to the queue is granted.
*/
struct
task
*
queue_gettask
(
struct
queue
*
q
,
const
struct
task
*
prev
,
int
blocking
)
{
...
...
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