Changeset 4d68584 in mainline for uspace/lib/cpp/include/__bits/thread/shared_state.hpp
- Timestamp:
- 2019-07-02T10:59:39Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09170ab8
- Parents:
- 239d25b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/shared_state.hpp
r239d25b r4d68584 76 76 } 77 77 78 void set_exception(exception_ptr ptr )78 void set_exception(exception_ptr ptr, bool set = true) 79 79 { 80 80 exception_ = ptr; 81 has_exception_ = true;81 has_exception_ = set; 82 82 } 83 83 … … 89 89 void throw_stored_exception() const 90 90 { 91 // TODO: implement 91 if (has_exception_) 92 rethrow_exception(exception_); 92 93 } 93 94 … … 266 267 } 267 268 } 268 catch( ...) // TODO: Any exception.269 catch(const exception& __exception) 269 270 { 270 // TODO: Store it.271 this->set_exception(make_exception_ptr(__exception)); 271 272 } 272 273 } … … 351 352 } 352 353 } 353 catch( ...)354 catch(const exception& __exception) 354 355 { 355 // TODO: Store it.356 this->set_exception(make_exception_ptr(__exception)); 356 357 } 357 358 }
Note:
See TracChangeset
for help on using the changeset viewer.