@@ -135,7 +135,7 @@ class StreamingBatchScheduler : public BatchScheduler<TaskType> {
135135 //
136136 // A negative value means that no timeout will be enforced. This setting is
137137 // useful in some test code.
138- int64 batch_timeout_micros = 0 ;
138+ int64_t batch_timeout_micros = 0 ;
139139
140140 // The name to use for the pool of batch threads.
141141 string thread_pool_name = " batch_threads" ;
@@ -151,7 +151,7 @@ class StreamingBatchScheduler : public BatchScheduler<TaskType> {
151151
152152 // How long SingleTaskScheduler should wait if there are no scheduled tasks,
153153 // in microseconds.
154- uint64 no_tasks_wait_time_micros = 1000 ; // 1 millisecond
154+ uint64_t no_tasks_wait_time_micros = 1000 ; // 1 millisecond
155155 };
156156 static Status Create (
157157 const Options& options,
@@ -188,7 +188,7 @@ class StreamingBatchScheduler : public BatchScheduler<TaskType> {
188188 // Takes a snapshot of 'open_batch_num_', and schedules an event with
189189 // 'batch_closer_' to close it at time 'close_time_micros' if it is still open
190190 // at that time.
191- void ScheduleCloseOfCurrentOpenBatch (uint64 close_time_micros)
191+ void ScheduleCloseOfCurrentOpenBatch (uint64_t close_time_micros)
192192 TF_EXCLUSIVE_LOCKS_REQUIRED(mu_);
193193
194194 const Options options_;
@@ -209,7 +209,7 @@ class StreamingBatchScheduler : public BatchScheduler<TaskType> {
209209
210210 // The sequence number of 'open_batch_'. Incremented each time 'open_batch_'
211211 // is assigned to a new (non-null) batch object.
212- int64 open_batch_num_ TF_GUARDED_BY (mu_) = 0;
212+ int64_t open_batch_num_ TF_GUARDED_BY (mu_) = 0;
213213
214214 // The number of batches "in progress", i.e. batches that have been started
215215 // but for which the process-batch callback hasn't finished. Note that this
@@ -246,7 +246,7 @@ namespace internal {
246246class SingleTaskScheduler {
247247 public:
248248 SingleTaskScheduler (Env* env, string thread_name,
249- uint64 no_tasks_wait_time_micros);
249+ uint64_t no_tasks_wait_time_micros);
250250
251251 // Blocks until the currently-set closure (if any) runs.
252252 ~SingleTaskScheduler ();
@@ -256,7 +256,7 @@ class SingleTaskScheduler {
256256 // cancels any closures provided in them (if they haven't already been run).
257257 //
258258 // IMPORTANT: 'time_micros' must be monotonically non-decreasing across calls.
259- void Schedule (uint64 time_micros, std::function<void ()> closure);
259+ void Schedule (uint64_t time_micros, std::function<void ()> closure);
260260
261261 private:
262262 // The code executed in 'thread_'. Looks for updated tasks, and executes them
@@ -271,7 +271,7 @@ class SingleTaskScheduler {
271271
272272 // The arguments to Schedule().
273273 struct Task {
274- uint64 time_micros;
274+ uint64_t time_micros;
275275 std::function<void ()> closure;
276276 };
277277
@@ -280,7 +280,7 @@ class SingleTaskScheduler {
280280
281281 // The time parameter passed in the most recent Schedule() invocation.
282282 // Used to enforce monotonicity.
283- uint64 last_task_time_ = 0 ;
283+ uint64_t last_task_time_ = 0 ;
284284
285285 // A notification for stopping the thread, during destruction.
286286 Notification stop_;
@@ -292,7 +292,7 @@ class SingleTaskScheduler {
292292 std::unique_ptr<Thread> thread_;
293293
294294 // How long to wait if there are no scheduled tasks, in microseconds.
295- const uint64 no_tasks_wait_time_micros_;
295+ const uint64_t no_tasks_wait_time_micros_;
296296
297297 TF_DISALLOW_COPY_AND_ASSIGN (SingleTaskScheduler);
298298};
@@ -363,7 +363,7 @@ Status StreamingBatchScheduler<TaskType>::Schedule(
363363 // If we are about to add the first task to a batch, schedule the batch to
364364 // be closed after the timeout.
365365 if (options_.batch_timeout_micros > 0 && open_batch_->empty ()) {
366- const uint64 batch_deadline =
366+ const uint64_t batch_deadline =
367367 options_.env ->NowMicros () + options_.batch_timeout_micros ;
368368 ScheduleCloseOfCurrentOpenBatch (batch_deadline);
369369 }
@@ -433,13 +433,13 @@ void StreamingBatchScheduler<TaskType>::StartNewBatch() {
433433
434434template <typename TaskType>
435435void StreamingBatchScheduler<TaskType>::ScheduleCloseOfCurrentOpenBatch(
436- uint64 close_time_micros) {
436+ uint64_t close_time_micros) {
437437 if (batch_closer_ == nullptr ) {
438438 batch_closer_.reset (new internal::SingleTaskScheduler (
439439 options_.env , " batch_closer" , options_.no_tasks_wait_time_micros ));
440440 }
441441
442- const int64 batch_num_to_close = open_batch_num_;
442+ const int64_t batch_num_to_close = open_batch_num_;
443443 batch_closer_->Schedule (close_time_micros, [this , batch_num_to_close] {
444444 {
445445 mutex_lock l (this ->mu_ );
0 commit comments