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

Method ~ScopedReservation

tensorflow/compiler/xla/python/semaphore.cc:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Semaphore::ScopedReservation::~ScopedReservation() {
49 if (semaphore_) {
50 semaphore_->Release(amount_);
51 }
52}
53
54Semaphore::ScopedReservation::ScopedReservation(
55 ScopedReservation&& other) noexcept {

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected