Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
18f7b491
authored
9 years ago
by
lucapegolotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test on single producer - single consumer queue
parent
1f48dc23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
linearizability_tester/main.cc
+4
-0
No files found.
linearizability_tester/main.cc
View file @
18f7b491
...
...
@@ -15,6 +15,7 @@
#include <embb/base/thread.h>
#include <embb/containers/lock_free_stack.h>
#include <embb/containers/lock_free_mpmc_queue.h>
#include <embb/containers/wait_free_spsc_queue.h>
// Each thread executes quasi randomly operations (TryEqneueu, TryDequeue)
// on the concurrent data structure and construct the history.
...
...
@@ -202,6 +203,9 @@ int main()
std
::
cout
<<
"Linearizability test on LockFreeMPMCQueue"
<<
std
::
endl
;
embb_experiment_queue
<
embb
::
containers
::
LockFreeMPMCQueue
<
char
>>
();
std
::
cout
<<
"Linearizability test on WaitFreeSPSCQueue"
<<
std
::
endl
;
embb_experiment_queue
<
embb
::
containers
::
WaitFreeSPSCQueue
<
char
>>
();
std
::
cout
<<
"Linearizability test on LockFreeStack"
<<
std
::
endl
;
embb_experiment_stack
<
embb
::
containers
::
LockFreeStack
<
char
>>
();
return
0
;
...
...
This diff is collapsed.
Click to expand it.
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