move assignment operators for folly::Synchronized
Summary: * added move assignment operators, * fixed `operator=(const Synchronized& rhs)` (it had a typo), * fixed deadlock on self-assignment, * changed `swap` to call `swap(lhs.datum_, rhs.datum_)` instead of `lhs.datum_.swap(rhs.datum_)`. Test Plan: fbconfig -r folly/test && fbmake opt -j32 && fbmake runtests_opt Reviewed By: delong.j@fb.com FB internal diff: D875977
Showing
Please register or sign in to comment