mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
wip
This commit is contained in:
@@ -2064,12 +2064,13 @@ void ::swift_distributed_execute_target(
|
||||
auto *accessor = findDistributedAccessor(targetNameStart, targetNameLength);
|
||||
if (!accessor) {
|
||||
assert(false && "no distributed accessor accessor");
|
||||
return;
|
||||
return; // FIXME(distributed): return -1 here so the lib can fail the call
|
||||
}
|
||||
fprintf(stderr, "[%s:%d] (%s) found accessor\n", __FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
auto *asyncFnPtr = reinterpret_cast<
|
||||
const AsyncFunctionPointer<DistributedAccessorSignature> *>(accessor);
|
||||
const AsyncFunctionPointer<DistributedAccessorSignature> *>(
|
||||
accessor->Function.get());
|
||||
assert(asyncFnPtr && "no function pointer for distributed_execute_target");
|
||||
|
||||
DistributedAccessorSignature::FunctionType *accessorEntry =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// XXX: %target-swift-frontend -primary-file %s -emit-sil -parse-as-library -enable-experimental-distributed -disable-availability-checking | %FileCheck %s --enable-var-scope --dump-input=always
|
||||
// TODO: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-distributed -parse-as-library) | %FileCheck %s --dump-input=always
|
||||
// RUN: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-distributed -parse-as-library) | %FileCheck %s --dump-input=always
|
||||
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: concurrency
|
||||
@@ -12,9 +12,6 @@
|
||||
// FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
|
||||
// UNSUPPORTED: windows
|
||||
|
||||
// TODO(distributed): work in progress
|
||||
// XFAIL: *
|
||||
|
||||
import _Distributed
|
||||
|
||||
final class Obj: @unchecked Sendable, Codable {}
|
||||
@@ -110,7 +107,7 @@ func test() async throws {
|
||||
let local = Greeter(system: system)
|
||||
|
||||
// act as if we decoded an Invocation:
|
||||
var invocation = FakeInvocation()
|
||||
let invocation = FakeInvocation()
|
||||
|
||||
try await system.executeDistributedTarget(
|
||||
on: local,
|
||||
|
||||
Reference in New Issue
Block a user