Files
swift-mirror/stdlib/public/SwiftShims/_SwiftConcurrency.h
Doug Gregor 9b0266cf6a [Concurrency] Stub out an experimental concurrency support library.
The experimental concurrency model will require a supporting runtime
and possibly end-user-visible library constructs. Introduce a stub of
such a library, enabled by a new `build-script` option
`--enable-experimental-concurrency`, so we have a place to put this
work.
2020-07-29 16:32:27 -07:00

34 lines
969 B
C++

//===--- _SwiftConcurrency.h - Swift Concurrency Support --------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// Defines types and support functions for the Swift concurrency model.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_CONCURRENCY_H
#define SWIFT_CONCURRENCY_H
#ifdef __cplusplus
namespace swift {
extern "C" {
#endif
typedef struct _SwiftContext {
struct _SwiftContext *parentContext;
} _SwiftContext;
#ifdef __cplusplus
} // extern "C"
} // namespace swift
#endif
#endif // SWIFT_CONCURRENCY_H