Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tom Niget
typon
Commits
5369a945
Commit
5369a945
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
2a319c35
Changes
2
Show 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 @
5369a945
...
...
@@ -4,11 +4,12 @@
#include <atomic>
#include <cstdint>
namespace
typon
namespace
typon
::
fdt
::
lock_free
{
template
<
unsigned
int
N
=
10
>
struct
EventC
ount
struct
event_c
ount
{
using
u64
=
std
::
uint_fast64_t
;
...
...
@@ -59,4 +60,5 @@ namespace typon
}
#endif // TYPON_EVENTCOUNT_HPP_INCLUDED
rt/include/typon/scheduler.hpp
View file @
5369a945
...
...
@@ -7,10 +7,10 @@
#include <thread>
#include <vector>
#include <typon/fundamental/event_count.hpp>
#include <typon/fundamental/random.hpp>
#include <typon/continuation.hpp>
#include <typon/eventcount.hpp>
#include <typon/deque.hpp>
...
...
@@ -30,7 +30,7 @@ namespace typon
std
::
vector
<
Deque
>
_deque
;
std
::
vector
<
std
::
thread
>
_thread
;
std
::
atomic_bool
_done
{
false
};
EventC
ount
<>
_notifyer
;
fdt
::
lock_free
::
event_c
ount
<>
_notifyer
;
const
uint
_parallelism
;
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