MCPcopy Create free account
hub / github.com/apple/foundationdb / createPromise

Method createPromise

bindings/java/JavaWorkload.cpp:421–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 }
420
421 jobject createPromise(GenericPromise<bool>&& promise) {
422 auto p = std::make_unique<JavaPromise>(std::move(promise));
423 auto clazz = getClass("com/apple/foundationdb/testing/Promise");
424 auto res = env->NewObject(clazz, getMethod(clazz, "<init>", "(J)V"), reinterpret_cast<jlong>(p.get()));
425 checkException();
426 p.release();
427 return res;
428 }
429
430 void shutdownWorkload(jobject workload, const std::string& workloadName) {
431 auto clazz = getClass(workloadName.c_str());

Callers

nothing calls this directly

Calls 4

moveFunction · 0.85
getMethodFunction · 0.85
getMethod · 0.65
releaseMethod · 0.45

Tested by

no test coverage detected