Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-concurrency
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
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
Xavier Thompson
typon-concurrency
Commits
e1a93b3f
Commit
e1a93b3f
authored
May 06, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move eventcount.hpp to fundamental/event_count.hpp
parent
efb63e76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
rt/include/typon/fundamental/event_count.hpp
rt/include/typon/fundamental/event_count.hpp
+4
-2
rt/include/typon/scheduler.hpp
rt/include/typon/scheduler.hpp
+2
-2
No files found.
rt/include/typon/
event
count.hpp
→
rt/include/typon/
fundamental/event_
count.hpp
View file @
e1a93b3f
...
@@ -4,11 +4,12 @@
...
@@ -4,11 +4,12 @@
#include <atomic>
#include <atomic>
#include <cstdint>
#include <cstdint>
namespace
typon
namespace
typon
::
fdt
::
lock_free
{
{
template
<
unsigned
int
N
=
10
>
template
<
unsigned
int
N
=
10
>
struct
EventC
ount
struct
event_c
ount
{
{
using
u64
=
std
::
uint_fast64_t
;
using
u64
=
std
::
uint_fast64_t
;
...
@@ -59,4 +60,5 @@ namespace typon
...
@@ -59,4 +60,5 @@ namespace typon
}
}
#endif // TYPON_EVENTCOUNT_HPP_INCLUDED
#endif // TYPON_EVENTCOUNT_HPP_INCLUDED
rt/include/typon/scheduler.hpp
View file @
e1a93b3f
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <typon/fundamental/event_count.hpp>
#include <typon/fundamental/random.hpp>
#include <typon/fundamental/random.hpp>
#include <typon/continuation.hpp>
#include <typon/continuation.hpp>
#include <typon/eventcount.hpp>
#include <typon/deque.hpp>
#include <typon/deque.hpp>
...
@@ -30,7 +30,7 @@ namespace typon
...
@@ -30,7 +30,7 @@ namespace typon
std
::
vector
<
Deque
>
_deque
;
std
::
vector
<
Deque
>
_deque
;
std
::
vector
<
std
::
thread
>
_thread
;
std
::
vector
<
std
::
thread
>
_thread
;
std
::
atomic_bool
_done
{
false
};
std
::
atomic_bool
_done
{
false
};
EventC
ount
<>
_notifyer
;
fdt
::
lock_free
::
event_c
ount
<>
_notifyer
;
const
uint
_parallelism
;
const
uint
_parallelism
;
static
Scheduler
&
get
()
noexcept
static
Scheduler
&
get
()
noexcept
...
...
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