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
b77510b2
Commit
b77510b2
authored
Jun 22, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Future into Promise
parent
6e199461
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
rt/include/typon/core/promise.hpp
rt/include/typon/core/promise.hpp
+8
-8
rt/include/typon/typon.hpp
rt/include/typon/typon.hpp
+1
-1
No files found.
rt/include/typon/core/
futur
e.hpp
→
rt/include/typon/core/
promis
e.hpp
View file @
b77510b2
#ifndef TYPON_CORE_
FUTUR
E_HPP_INCLUDED
#ifndef TYPON_CORE_
PROMIS
E_HPP_INCLUDED
#define TYPON_CORE_
FUTUR
E_HPP_INCLUDED
#define TYPON_CORE_
PROMIS
E_HPP_INCLUDED
#include <atomic>
#include <atomic>
#include <cstdint>
#include <cstdint>
...
@@ -16,7 +16,7 @@ namespace typon
...
@@ -16,7 +16,7 @@ namespace typon
{
{
template
<
typename
T
>
template
<
typename
T
>
struct
Futur
e
struct
Promis
e
{
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
@@ -28,7 +28,7 @@ namespace typon
...
@@ -28,7 +28,7 @@ namespace typon
T
_value
;
T
_value
;
};
};
~
Futur
e
()
~
Promis
e
()
{
{
if
(
!
_consumed
)
if
(
!
_consumed
)
{
{
...
@@ -75,7 +75,7 @@ namespace typon
...
@@ -75,7 +75,7 @@ namespace typon
template
<
typename
T
>
template
<
typename
T
>
requires
std
::
is_trivially_destructible_v
<
T
>
requires
std
::
is_trivially_destructible_v
<
T
>
struct
Futur
e
<
T
>
struct
Promis
e
<
T
>
{
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
@@ -119,7 +119,7 @@ namespace typon
...
@@ -119,7 +119,7 @@ namespace typon
template
<
typename
T
>
template
<
typename
T
>
struct
Futur
e
<
T
&>
struct
Promis
e
<
T
&>
{
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
@@ -160,7 +160,7 @@ namespace typon
...
@@ -160,7 +160,7 @@ namespace typon
template
<
>
template
<
>
struct
Futur
e
<
void
>
struct
Promis
e
<
void
>
{
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
@@ -197,4 +197,4 @@ namespace typon
...
@@ -197,4 +197,4 @@ namespace typon
}
}
#endif // TYPON_CORE_
FUTUR
E_HPP_INCLUDED
#endif // TYPON_CORE_
PROMIS
E_HPP_INCLUDED
rt/include/typon/typon.hpp
View file @
b77510b2
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
#include <typon/core/fork.hpp>
#include <typon/core/fork.hpp>
#include <typon/core/forked.hpp>
#include <typon/core/forked.hpp>
#include <typon/core/future.hpp>
#include <typon/core/join.hpp>
#include <typon/core/join.hpp>
#include <typon/core/promise.hpp>
#include <typon/core/root.hpp>
#include <typon/core/root.hpp>
#include <typon/core/task.hpp>
#include <typon/core/task.hpp>
...
...
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