Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
e149348b
Commit
e149348b
authored
Jan 17, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed unit test for single_reader_queue
parent
e433d5fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
unit_testing/test__intrusive_containers.cpp
unit_testing/test__intrusive_containers.cpp
+6
-6
No files found.
unit_testing/test__intrusive_containers.cpp
View file @
e149348b
...
...
@@ -63,19 +63,19 @@ int main() {
CPPA_TEST
(
test__intrusive_containers
);
cppa
::
intrusive
::
single_reader_queue
<
iint
>
q
;
q
.
push_back
(
new
iint
(
1
));
q
.
push_back
(
new
iint
(
2
));
q
.
push_back
(
new
iint
(
3
));
q
.
enqueue
(
new
iint
(
1
));
q
.
enqueue
(
new
iint
(
2
));
q
.
enqueue
(
new
iint
(
3
));
CPPA_CHECK_EQUAL
(
s_iint_instances
,
3
);
auto
x
=
q
.
pop
();
auto
x
=
q
.
try_
pop
();
CPPA_CHECK_EQUAL
(
1
,
x
->
value
);
delete
x
;
x
=
q
.
pop
();
x
=
q
.
try_
pop
();
CPPA_CHECK_EQUAL
(
2
,
x
->
value
);
delete
x
;
x
=
q
.
pop
();
x
=
q
.
try_
pop
();
CPPA_CHECK_EQUAL
(
3
,
x
->
value
);
delete
x
;
x
=
q
.
try_pop
();
...
...
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