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.
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
Definition AtomicBoolean.h:27
Definition AbstractExecutorService.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25