Created on 2009-01-07.00:00:00 last changed 161 months ago
Proposed resolution:
In [thread.thread.member] change:
void detach();...
-14- Error conditions:
- no_such_process -- if the thread is not
avalidthread.- invalid_argument -- if the thread is not
a detachablejoinablethread.
[ 2009-10 Santa Cruz: ]
Mark as Ready with proposed resolution from Summit.
[ Post Summit, Anthony Williams adds: ]
This is covered by the precondition that joinable() be true.
Anthony recommends this proposed wording:
In [thread.thread.member] change:
void detach();...
-14- Error conditions:
- ...
invalid_argument -- not a detachable thread.
[ Post Summit, Jonathan Wakely adds: ]
A thread is detachable if it is joinable. As we've defined joinable, we can just use that.
This corresponds to the pthreads specification, where pthread_detach fails if the thread is not joinable:
EINVAL: The implementation has detected that the value specified by thread does not refer to a joinable thread.
Jonathan recommends this proposed wording:
In [thread.thread.member] change:
void detach();...
-14- Error conditions:
- ...
- invalid_argument -- not a
detachablejoinable thread.
[ Summit, proposed resolution: ]
In [thread.thread.member] change:
void detach();...
-14- Error conditions:
- no_such_process -- if the thread is not
avalidthread.- invalid_argument -- if the thread is not
a detachablejoinablethread.
[ Howard adds: ]
Due to a mistake on my part, 3 proposed resolutions appeared at approximately the same time. They are all three noted below in the discussion.
[thread.thread.member]: thread::detach is required to throw an exception if the thread is "not a detachable thread". "Detachable" is never defined.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg4590 |
2010-10-21 18:28:33 | admin | set | messages: + msg4589 |
2010-10-21 18:28:33 | admin | set | messages: + msg4588 |
2010-10-21 18:28:33 | admin | set | messages: + msg4587 |
2010-10-21 18:28:33 | admin | set | messages: + msg4586 |
2010-10-21 18:28:33 | admin | set | messages: + msg4585 |
2009-01-07 00:00:00 | admin | create |