Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
QuickSched
Commits
d547fdaf
Commit
d547fdaf
authored
11 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
added qlock timer.
parent
22186ed1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/qsched.c
+1
-1
1 addition, 1 deletion
src/qsched.c
src/qsched.h
+1
-0
1 addition, 0 deletions
src/qsched.h
src/queue.c
+2
-0
2 additions, 0 deletions
src/queue.c
with
4 additions
and
1 deletion
src/qsched.c
+
1
−
1
View file @
d547fdaf
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
/** Timer names. */
/** Timer names. */
char
*
qsched_timer_names
[
qsched_timer_count
]
=
char
*
qsched_timer_names
[
qsched_timer_count
]
=
{
"queue"
,
"lock"
,
"gettask"
,
"done"
,
"prepare"
};
{
"queue"
,
"qlock"
,
"lock"
,
"gettask"
,
"done"
,
"prepare"
};
/**
/**
...
...
This diff is collapsed.
Click to expand it.
src/qsched.h
+
1
−
0
View file @
d547fdaf
...
@@ -54,6 +54,7 @@ typedef void (*qsched_funtype)( int , void * );
...
@@ -54,6 +54,7 @@ typedef void (*qsched_funtype)( int , void * );
/** Timer types. */
/** Timer types. */
enum
qsched_timer
{
enum
qsched_timer
{
qsched_timer_queue
=
0
,
qsched_timer_queue
=
0
,
qsched_timer_qlock
,
qsched_timer_lock
,
qsched_timer_lock
,
qsched_timer_gettask
,
qsched_timer_gettask
,
qsched_timer_done
,
qsched_timer_done
,
...
...
This diff is collapsed.
Click to expand it.
src/queue.c
+
2
−
0
View file @
d547fdaf
...
@@ -54,8 +54,10 @@ int queue_get ( struct queue *q , struct qsched *s ) {
...
@@ -54,8 +54,10 @@ int queue_get ( struct queue *q , struct qsched *s ) {
return
-
1
;
return
-
1
;
/* Lock this queue. */
/* Lock this queue. */
TIMER_TIC
if
(
lock_lock
(
&
q
->
lock
)
!=
0
)
if
(
lock_lock
(
&
q
->
lock
)
!=
0
)
error
(
"Failed to lock queue."
);
error
(
"Failed to lock queue."
);
TIMER_TOC
(
s
,
qsched_timer_qlock
);
/* Get a pointer to the indices. */
/* Get a pointer to the indices. */
inds
=
q
->
inds
;
inds
=
q
->
inds
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment