Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Schmaus
emper
Commits
9568f3a4
Commit
9568f3a4
authored
6 years ago
by
Florian Schmaus
Browse files
Options
Downloads
Patches
Plain Diff
Add Fiber::print()
parent
c6a0e7f3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
emper/Fiber.cpp
+14
-2
14 additions, 2 deletions
emper/Fiber.cpp
emper/Fiber.hpp
+2
-0
2 additions, 0 deletions
emper/Fiber.hpp
with
16 additions
and
2 deletions
emper/Fiber.cpp
+
14
−
2
View file @
9568f3a4
...
...
@@ -13,7 +13,19 @@ void Fiber::run() const {
std
::
ostream
&
operator
<<
(
std
::
ostream
&
strm
,
const
Fiber
&
fiber
)
{
strm
<<
"Fiber [ptr="
<<
&
fiber
<<
" func="
<<
fiber
.
function
.
target
<
void
(
void
*
)
>
()
<<
" arg="
<<
fiber
.
arg
<<
"]"
;
<<
" arg="
<<
fiber
.
arg
;
if
(
fiber
.
affinity
)
{
strm
<<
" aff="
<<
fiber
.
affinity
;
}
else
{
strm
<<
" aff=nullptr"
;
}
strm
<<
"]"
;
return
strm
;
}
void
Fiber
::
print
()
const
{
std
::
cout
<<
this
<<
std
::
endl
;
}
This diff is collapsed.
Click to expand it.
emper/Fiber.hpp
+
2
−
0
View file @
9568f3a4
...
...
@@ -127,6 +127,8 @@ public:
return
*
affinity
;
}
void
print
()
const
;
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
Fiber
&
);
static
inline
Fiber
*
from
(
fiber_fun_t
function
,
void
*
arg
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment