A simple thread object that cancels the threadFuture
| 39 | |
| 40 | // A simple thread object that cancels the threadFuture |
| 41 | struct ThreadFutureCancelObj { |
| 42 | ThreadFutureCancelObj(ThreadFuture<Void> f) : f(f) {} |
| 43 | void operator()() { f.cancel(); } |
| 44 | ThreadFuture<Void> f; |
| 45 | }; |
| 46 | |
| 47 | // This unit test should be running with TSAN enabled binary |
| 48 | TEST_CASE("/flow/safeThreadFutureToFuture/Send") { |
no outgoing calls
no test coverage detected