Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
204c894e
Commit
204c894e
authored
Nov 01, 2012
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackrdrd: Fixed an off-by-one error in the last commit
parent
e45e8a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_spmcq.c
src/test/test_spmcq.c
+4
-4
No files found.
src/test/test_spmcq.c
View file @
204c894e
...
...
@@ -99,9 +99,9 @@ static void
pthread_exit
((
void
*
)
&
proddata
);
}
#define consumer_exit(pcdata, reason)
\
do {
\
(pcdata)->fail = (reason);
\
#define consumer_exit(pcdata, reason) \
do { \
(pcdata)->fail = (reason); \
pthread_exit((pcdata)); \
} while(0)
...
...
@@ -109,7 +109,7 @@ static void
*
consumer
(
void
*
arg
)
{
int
id
=
*
((
int
*
)
arg
),
deqs
=
0
;
prod_con_data_t
*
pcdata
=
&
condata
[
id
];
prod_con_data_t
*
pcdata
=
&
condata
[
id
-
1
];
pcdata
->
sum
=
0
;
pcdata
->
fail
=
SUCCESS
;
unsigned
*
xid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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