MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GcsThrottle

Method GcsThrottle

tensorflow/core/platform/cloud/gcs_throttle.cc:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace tensorflow {
21
22GcsThrottle::GcsThrottle(EnvTime* env_time)
23 : last_updated_secs_(env_time->NowSeconds()),
24 available_tokens_(0),
25 env_time_(env_time) {}
26
27bool GcsThrottle::AdmitRequest() {
28 mutex_lock l(mu_);

Callers

nothing calls this directly

Calls 1

NowSecondsMethod · 0.45

Tested by

no test coverage detected