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
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
cython-plus
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
Hide 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
#define TYPON_CORE_
FUTUR
E_HPP_INCLUDED
#ifndef TYPON_CORE_
PROMIS
E_HPP_INCLUDED
#define TYPON_CORE_
PROMIS
E_HPP_INCLUDED
#include <atomic>
#include <cstdint>
...
...
@@ -16,7 +16,7 @@ namespace typon
{
template
<
typename
T
>
struct
Futur
e
struct
Promis
e
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
...
@@ -28,7 +28,7 @@ namespace typon
T
_value
;
};
~
Futur
e
()
~
Promis
e
()
{
if
(
!
_consumed
)
{
...
...
@@ -75,7 +75,7 @@ namespace typon
template
<
typename
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
no_waiter
{
1
};
...
...
@@ -119,7 +119,7 @@ namespace typon
template
<
typename
T
>
struct
Futur
e
<
T
&>
struct
Promis
e
<
T
&>
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
...
@@ -160,7 +160,7 @@ namespace typon
template
<
>
struct
Futur
e
<
void
>
struct
Promis
e
<
void
>
{
static
constexpr
std
::
uintptr_t
ready
{
0
};
static
constexpr
std
::
uintptr_t
no_waiter
{
1
};
...
...
@@ -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 @@
#include <typon/core/fork.hpp>
#include <typon/core/forked.hpp>
#include <typon/core/future.hpp>
#include <typon/core/join.hpp>
#include <typon/core/promise.hpp>
#include <typon/core/root.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