GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/src/atomic-polyfill.h at master · littledan/node Expand file tree/ Copy pathatomic-polyfill.hMore file actions 18 lines (13 loc) · 353 Bytes / Copy pathatomic-polyfill.hFile metadata and controls18 lines (13 loc) · 353 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #ifndef SRC_ATOMIC_POLYFILL_H_ #define SRC_ATOMIC_POLYFILL_H_ #include "util.h" namespace nonstd { template <typename T> struct atomic { atomic() = default; T exchange(T value) { return __sync_lock_test_and_set(&value_, value); } T value_ = T(); DISALLOW_COPY_AND_ASSIGN(atomic); }; } // namespace nonstd #endif // SRC_ATOMIC_POLYFILL_H_ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |