Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
thallium
Commits
310b6251
Commit
310b6251
authored
Feb 26, 2019
by
Matthieu Dorier
Browse files
added exception in move assignment operator
parent
b3ff1ba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/thallium/mutex.hpp
View file @
310b6251
...
...
@@ -80,8 +80,9 @@ class mutex {
* @brief Move assignment operator is deleted.
*/
mutex
&
operator
=
(
mutex
&&
other
)
{
if
(
m_mutex
!=
ABT_MUTEX_NULL
)
ABT_mutex_free
(
&
m_mutex
);
if
(
m_mutex
!=
ABT_MUTEX_NULL
)
{
TL_MUTEX_ASSERT
(
ABT_mutex_free
(
&
m_mutex
));
}
m_mutex
=
other
.
m_mutex
;
other
.
m_mutex
=
ABT_MUTEX_NULL
;
return
*
this
;
...
...
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