Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thallium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
sds
thallium
Commits
473a80c3
Commit
473a80c3
authored
Jun 22, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected problem with destructor
parent
9bf1c393
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
include/thallium/pool.hpp
include/thallium/pool.hpp
+2
-0
include/thallium/scheduler.hpp
include/thallium/scheduler.hpp
+1
-0
No files found.
include/thallium/pool.hpp
View file @
473a80c3
...
...
@@ -127,6 +127,7 @@ class pool {
static
void
u_free
(
ABT_unit
*
u
)
{
auto
uu
=
static_cast
<
U
*>
(
*
u
);
uu
->~
U
();
unit_allocator
.
deallocate
(
uu
,
1
);
*
u
=
nullptr
;
}
...
...
@@ -172,6 +173,7 @@ class pool {
void
*
data
;
int
ret
=
ABT_pool_get_data
(
p
,
&
data
);
auto
impl
=
static_cast
<
P
*>
(
data
);
impl
->~
P
();
pool_allocator
.
deallocate
(
impl
,
1
);
}
};
...
...
include/thallium/scheduler.hpp
View file @
473a80c3
...
...
@@ -91,6 +91,7 @@ class scheduler {
void
*
data
;
ABT_sched_get_data
(
s
,
&
data
);
S
*
impl
=
static_cast
<
S
*>
(
data
);
impl
->~
S
();
scheduler_allocator
.
deallocate
(
impl
,
1
);
}
...
...
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