| 3280 | |
| 3281 | struct DLTest { |
| 3282 | static FutureInfo createThreadFuture(FutureInfo f) { |
| 3283 | return FutureInfo( |
| 3284 | toThreadFuture<int>(getApi(), |
| 3285 | (FdbCApi::FDBFuture*)f.future.extractPtr(), |
| 3286 | [](FdbCApi::FDBFuture* f, FdbCApi* api) { |
| 3287 | ASSERT_GE(((ThreadSingleAssignmentVar<int>*)f)->debugGetReferenceCount(), 1); |
| 3288 | return ((ThreadSingleAssignmentVar<int>*)f)->get(); |
| 3289 | }), |
| 3290 | f.expectedValue, |
| 3291 | f.legalErrors); |
| 3292 | } |
| 3293 | |
| 3294 | static Reference<FdbCApi> getApi() { |
| 3295 | static Reference<FdbCApi> api; |
nothing calls this directly
no test coverage detected