File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1144,6 +1144,7 @@ cc_library(
1144
1144
hdrs = ["notification.h" ],
1145
1145
compatible_with = get_compatible_with_portable (),
1146
1146
deps = [
1147
+ "@com_google_absl//absl/base:core_headers" ,
1147
1148
"@com_google_absl//absl/synchronization" ,
1148
1149
"@com_google_absl//absl/time" ,
1149
1150
],
Original file line number Diff line number Diff line change @@ -21,16 +21,21 @@ limitations under the License.
21
21
#include < cstdint>
22
22
#include < mutex> // NOLINT
23
23
24
+ #include " absl/base/macros.h"
24
25
#include " absl/synchronization/notification.h"
25
26
#include " absl/time/time.h"
26
27
28
+ // TODO: b/330223377 - This macro should eventually be provided by Abseil.
29
+ #ifndef ABSL_DEPRECATE_AND_INLINE
30
+ #define ABSL_DEPRECATE_AND_INLINE ()
31
+ #endif
32
+
27
33
namespace tsl {
28
34
29
- using absl::Notification;
35
+ using Notification ABSL_DEPRECATE_AND_INLINE () = absl::Notification;
30
36
31
- // TODO(ddunleavy): remove this method and replace uses of `tsl::Notification`
32
- // with `absl::Notification`.
33
- inline bool WaitForNotificationWithTimeout (Notification* n,
37
+ ABSL_DEPRECATE_AND_INLINE ()
38
+ inline bool WaitForNotificationWithTimeout (absl::Notification* n,
34
39
int64_t timeout_in_us) {
35
40
return n->WaitForNotificationWithTimeout (absl::Microseconds (timeout_in_us));
36
41
}
You can’t perform that action at this time.
0 commit comments