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
373ccf36
Commit
373ccf36
authored
Dec 21, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #86 from toffaletti/unstable
fix minor build issues
parents
2e89b4a2
f604ac90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
src/fiber.cpp
src/fiber.cpp
+4
-2
No files found.
CMakeLists.txt
View file @
373ccf36
...
...
@@ -37,7 +37,7 @@ if (HAVE_VALGRIND_H)
add_definitions
(
-DCPPA_ANNOTATE_VALGRIND
)
else
(
HAVE_VALGRIND_H
)
set
(
VALGRIND
"no"
)
endif
(
AVE_VALGRIND_H
)
endif
(
H
AVE_VALGRIND_H
)
# check for g++ >= 4.7 or clang++ > = 3.2
try_run
(
ProgramResult
...
...
src/fiber.cpp
View file @
373ccf36
...
...
@@ -93,7 +93,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
ctx
::
make_fcontext
(
&
storage
,
fiber_trampoline
);
vg_register
(
vgm
,
storage
.
fc_stack
.
base
,
reinterpret_cast
<
intptr_t
>
(
storage
.
fc_stack
.
base
)
-
stacksize
);
reinterpret_cast
<
void
*>
(
reinterpret_cast
<
intptr_t
>
(
storage
.
fc_stack
.
base
)
-
stacksize
));
}
#else
namespace
ctx
=
boost
::
context
;
...
...
@@ -107,7 +108,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
storage
=
ctx
::
make_fcontext
(
alloc
.
allocate
(
mss
),
mss
,
fiber_trampoline
);
vg_register
(
vgm
,
storage
->
fc_stack
.
sp
,
reinterpret_cast
<
intptr_t
>
(
storage
->
fc_stack
.
sp
)
-
mss
);
reinterpret_cast
<
void
*>
(
reinterpret_cast
<
intptr_t
>
(
storage
->
fc_stack
.
sp
)
-
mss
));
}
#endif
...
...
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