From: Praveen Kumar Date: Wed, 11 Feb 2015 14:29:30 +0000 (+0530) Subject: EmulatedFutexAtomic doesn't copy or move X-Git-Tag: v0.27.0~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=da22f9c3d4c80529d14ce8e192dcabf56709cc20;p=folly.git EmulatedFutexAtomic doesn't copy or move Summary: EmulatedFutexAtomic concisely says here that it doesn't copy construct, move construct, copy assign, or move assign. Closes #130 Test Plan: Inspection and all unit tests. ``` Summary (total time 66.97s): PASS: 2029 FAIL: 0 SKIP: 0 FATAL: 0 TIMEOUT: 0 ``` Reviewed By: ngbronson@fb.com Subscribers: folly-diffs@, yfeldblum FB internal diff: D1868033 Signature: t1:1868033:1424808823:d9dd618981b29b5949c00190d69d670d96e60e07 --- diff --git a/folly/detail/Futex.h b/folly/detail/Futex.h index a6a5a06b..badf2e3e 100644 --- a/folly/detail/Futex.h +++ b/folly/detail/Futex.h @@ -136,7 +136,8 @@ struct EmulatedFutexAtomic : public std::atomic { EmulatedFutexAtomic() noexcept = default; constexpr /* implicit */ EmulatedFutexAtomic(T init) noexcept : std::atomic(init) {} - EmulatedFutexAtomic(const EmulatedFutexAtomic& rhs) = delete; + // It doesn't copy or move + EmulatedFutexAtomic(EmulatedFutexAtomic&& rhs) = delete; }; /* Available specializations, with definitions elsewhere */