Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
d2423e00
Commit
d2423e00
authored
Jan 04, 2012
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintenance
parent
c1f41337
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
12 deletions
+16
-12
cppa/detail/default_uniform_type_info_impl.hpp
cppa/detail/default_uniform_type_info_impl.hpp
+2
-2
cppa/detail/yield_interface.hpp
cppa/detail/yield_interface.hpp
+1
-1
cppa/util/is_forward_iterator.hpp
cppa/util/is_forward_iterator.hpp
+1
-1
cppa/util/is_iterable.hpp
cppa/util/is_iterable.hpp
+1
-1
src/demangle.cpp
src/demangle.cpp
+2
-2
src/yield_interface.cpp
src/yield_interface.cpp
+5
-4
src/yielding_actor.cpp
src/yielding_actor.cpp
+0
-1
unit_testing/test.hpp
unit_testing/test.hpp
+4
-0
No files found.
cppa/detail/default_uniform_type_info_impl.hpp
View file @
d2423e00
...
...
@@ -59,7 +59,7 @@ class is_stl_compliant_list
// mutable pointer
C
*
mc
,
// check if there's a 'void push_back()' that takes C::value_type
decltype
(
mc
->
push_back
(
typename
C
::
value_type
()))
*
=
0
decltype
(
mc
->
push_back
(
typename
C
::
value_type
()))
*
=
nullptr
)
{
return
true
;
...
...
@@ -93,7 +93,7 @@ class is_stl_compliant_map
return
true
;
}
static
void
cmp_help_fun
(
...
)
{
}
static
void
cmp_help_fun
(
void
*
)
{
}
typedef
decltype
(
cmp_help_fun
(
static_cast
<
T
*>
(
nullptr
)))
result_type
;
...
...
cppa/detail/yield_interface.hpp
View file @
d2423e00
...
...
@@ -35,7 +35,7 @@
namespace
cppa
{
namespace
detail
{
enum
class
yield_state
enum
class
yield_state
:
int
{
// yield() wasn't called yet
invalid
,
...
...
cppa/util/is_forward_iterator.hpp
View file @
d2423e00
...
...
@@ -58,7 +58,7 @@ class is_forward_iterator
return
true
;
}
static
void
sfinae_fun
(
...
)
{
}
static
void
sfinae_fun
(
void
*
)
{
}
typedef
decltype
(
sfinae_fun
(
static_cast
<
T
*>
(
nullptr
)))
result_type
;
...
...
cppa/util/is_iterable.hpp
View file @
d2423e00
...
...
@@ -55,7 +55,7 @@ class is_iterable
}
// SFNINAE default
static
void
sfinae_fun
(
...
)
{
}
static
void
sfinae_fun
(
void
const
*
)
{
}
typedef
decltype
(
sfinae_fun
(
static_cast
<
T
const
*>
(
nullptr
)))
result_type
;
...
...
src/demangle.cpp
View file @
d2423e00
...
...
@@ -41,7 +41,7 @@
namespace
cppa
{
namespace
detail
{
std
::
string
demangle
(
c
onst
char
*
decorated
)
std
::
string
demangle
(
c
har
const
*
decorated
)
{
size_t
size
;
int
status
;
...
...
@@ -54,7 +54,7 @@ std::string demangle(const char* decorated)
}
std
::
string
result
;
// the undecorated typeid name
result
.
reserve
(
size
);
c
onst
char
*
cstr
=
undecorated
;
c
har
const
*
cstr
=
undecorated
;
// filter unnecessary characters from undecorated
char
c
=
*
cstr
;
while
(
c
!=
'\0'
)
...
...
src/yield_interface.cpp
View file @
d2423e00
...
...
@@ -36,9 +36,9 @@ namespace {
using
namespace
cppa
;
__thread
detail
::
yield_state
*
t_ystate
=
nullptr
;
__thread
util
::
fiber
*
t_caller
=
nullptr
;
__thread
util
::
fiber
*
t_callee
=
nullptr
;
__thread
detail
::
yield_state
t_ystate
=
detail
::
yield_state
::
invalid
;
}
// namespace <anonymous>
...
...
@@ -46,17 +46,18 @@ namespace cppa { namespace detail {
void
yield
(
yield_state
ystate
)
{
t_ystate
=
ystate
;
*
t_ystate
=
ystate
;
util
::
fiber
::
swap
(
*
t_callee
,
*
t_caller
);
}
yield_state
call
(
util
::
fiber
*
what
,
util
::
fiber
*
from
)
{
t_ystate
=
yield_state
::
invalid
;
yield_state
result
;
t_ystate
=
&
result
;
t_caller
=
from
;
t_callee
=
what
;
util
::
fiber
::
swap
(
*
from
,
*
what
);
return
t_ystate
;
return
result
;
}
}
}
// namespace cppa::detail
src/yielding_actor.cpp
View file @
d2423e00
...
...
@@ -133,7 +133,6 @@ void yielding_actor::dequeue(timed_invoke_rules& rules)
void
yielding_actor
::
resume
(
util
::
fiber
*
from
,
resume_callback
*
callback
)
{
self
.
set
(
this
);
//set_self(this);
for
(;;)
{
switch
(
call
(
&
m_fiber
,
from
))
...
...
unit_testing/test.hpp
View file @
d2423e00
...
...
@@ -66,4 +66,8 @@ size_t test__primitive_variant();
void
test__queue_performance
();
using
std
::
cout
;
using
std
::
endl
;
using
std
::
cerr
;
#endif // TEST_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