18#ifndef _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICREFCOUNTER_H_
19#define _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICREFCOUNTER_H_
58 std::swap( this->counter, other.counter );
An int value that may be updated atomically.
Definition: AtomicInteger.h:37
int incrementAndGet()
Atomically increments by one the current value.
int decrementAndGet()
Atomically decrements by one the current value.
Definition: AtomicRefCounter.h:29
virtual ~AtomicRefCounter()
Definition: AtomicRefCounter.h:46
bool release()
Removes a reference to the counter Atomically and returns if the counter has reached zero,...
Definition: AtomicRefCounter.h:68
void swap(AtomicRefCounter &other)
Swaps this instance's reference counter with the one given, this allows for copy-and-swap semantics o...
Definition: AtomicRefCounter.h:57
AtomicRefCounter()
Definition: AtomicRefCounter.h:40
AtomicRefCounter(const AtomicRefCounter &other)
Definition: AtomicRefCounter.h:42
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25