Skip to content

Commit 33e74cd

Browse files
committed
[Threading] Rename chrono.h to match the namespace name.
rdar://100236038
1 parent 10ab608 commit 33e74cd

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

include/swift/Threading/Impl/C11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include <threads.h>
2424

25-
#include "chrono.h"
25+
#include "chrono_utils.h"
2626

2727
#include "llvm/ADT/Optional.h"
2828

include/swift/Threading/Impl/Darwin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <os/lock.h>
2222
#include <pthread.h>
2323

24-
#include "chrono.h"
24+
#include "chrono_utils.h"
2525

2626
#include "llvm/ADT/Optional.h"
2727

include/swift/Threading/Impl/Linux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <atomic>
2424
#include <optional>
2525

26-
#include "chrono.h"
26+
#include "chrono_utils.h"
2727

2828
#include "llvm/ADT/Optional.h"
2929

include/swift/Threading/Impl/Nothreads.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "llvm/ADT/Optional.h"
2121

22-
#include <chrono>
22+
#include "chrono_utils.h"
2323

2424
namespace swift {
2525
namespace threading_impl {

include/swift/Threading/Impl/Pthreads.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <atomic>
2424
#include <cstdint>
2525

26-
#include "chrono.h"
26+
#include "chrono_utils.h"
2727

2828
#include "llvm/ADT/Optional.h"
2929

include/swift/Threading/Impl/Win32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "Win32/Win32Defs.h"
2121

22-
#include "chrono.h"
22+
#include "chrono_utils.h"
2323

2424
#include <atomic>
2525

include/swift/Threading/Impl/chrono.h renamed to include/swift/Threading/Impl/chrono_utils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- chrono.h - Utility functions for duration/time_point - -*- C++ -*-===//
1+
//===--- chrono_utils.h - Utility functions for duration ------ -*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -16,8 +16,8 @@
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
#ifndef SWIFT_THREADING_IMPL_CHRONO_H
20-
#define SWIFT_THREADING_IMPL_CHRONO_H
19+
#ifndef SWIFT_THREADING_IMPL_CHRONO_UTILS_H
20+
#define SWIFT_THREADING_IMPL_CHRONO_UTILS_H
2121

2222
#include <chrono>
2323
#include <type_traits>
@@ -68,4 +68,4 @@ ceil(const std::chrono::duration<Rep, Period>& d)
6868
} // namespace threading_impl
6969
} // namespace swift
7070

71-
#endif // SWIFT_THREADING_IMPL_CHRONO_H
71+
#endif // SWIFT_THREADING_IMPL_CHRONO_UTILS_H

0 commit comments

Comments
 (0)