mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Moved all the threading code to one place. Added explicit support for Darwin, Linux, Pthreads, C11 threads and Win32 threads, including new implementations of Once for Linux, Pthreads, C11 and Win32. rdar://90776105
22 lines
766 B
C++
22 lines
766 B
C++
//==--- Nothreads.cpp - Threading abstraction implementation --- -*-C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2022 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Implements threading support for platforms without threading
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#if SWIFT_THREADING_NONE
|
|
|
|
#include "swift/Threading/Impl/Nothreads.h"
|
|
|
|
#endif // SWIFT_THREADING_NONE
|