Changeset 81a05ca for doc/papers/concurrency/c++-cor/counter.cpp
- Timestamp:
- Mar 19, 2019, 4:07:18 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 79b018f3
- Parents:
- 7cfd6d4 (diff), be3416d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/concurrency/c++-cor/counter.cpp
r7cfd6d4 r81a05ca 1 #include <iostream> 2 #include <experimental/coroutine> 3 4 struct suspend_never { 5 bool await_ready() noexcept { 6 return true; 7 } 8 9 void await_suspend(std::experimental::coroutine_handle<>) noexcept {} 10 void await_resume() noexcept {} 11 }; 12 13 struct suspend_always { 14 bool await_ready() noexcept { 15 return false; 16 } 17 18 void await_suspend(std::experimental::coroutine_handle<>) noexcept {} 19 void await_resume() noexcept {} 20 }; 1 #include "base.hpp" 21 2 22 3 struct counter_cor {
Note: See TracChangeset
for help on using the changeset viewer.