Lines Matching refs:CNT
33 static CNT: AtomicUsize = AtomicUsize::new(0); in drops_unit() constant
34 CNT.store(0, SeqCst); in drops_unit()
41 CNT.fetch_add(1, SeqCst); in drops_unit()
48 CNT.fetch_sub(1, SeqCst); in drops_unit()
61 assert_eq!(CNT.load(SeqCst), 1); in drops_unit()
64 assert_eq!(CNT.load(SeqCst), 1); in drops_unit()
67 assert_eq!(CNT.load(SeqCst), 1); in drops_unit()
70 assert_eq!(CNT.load(SeqCst), 0); in drops_unit()
75 static CNT: AtomicUsize = AtomicUsize::new(0); in drops_u8() constant
76 CNT.store(0, SeqCst); in drops_u8()
83 CNT.fetch_add(1, SeqCst); in drops_u8()
90 CNT.fetch_sub(1, SeqCst); in drops_u8()
104 assert_eq!(CNT.load(SeqCst), 1); in drops_u8()
107 assert_eq!(CNT.load(SeqCst), 1); in drops_u8()
110 assert_eq!(CNT.load(SeqCst), 1); in drops_u8()
113 assert_eq!(CNT.load(SeqCst), 1); in drops_u8()
116 assert_eq!(CNT.load(SeqCst), 0); in drops_u8()
121 static CNT: AtomicUsize = AtomicUsize::new(0); in drops_usize() constant
122 CNT.store(0, SeqCst); in drops_usize()
129 CNT.fetch_add(1, SeqCst); in drops_usize()
136 CNT.fetch_sub(1, SeqCst); in drops_usize()
150 assert_eq!(CNT.load(SeqCst), 1); in drops_usize()
153 assert_eq!(CNT.load(SeqCst), 1); in drops_usize()
156 assert_eq!(CNT.load(SeqCst), 1); in drops_usize()
159 assert_eq!(CNT.load(SeqCst), 1); in drops_usize()
162 assert_eq!(CNT.load(SeqCst), 0); in drops_usize()