Lines Matching refs:Ordering

3     sync::atomic::{AtomicI32, Ordering},
27 TRUE_LINE_NUM.store((height / TEXTUI_CHAR_HEIGHT) as i32, Ordering::SeqCst); in textui_init_no_alloc()
29 CHAR_PER_LINE.store((width / TEXTUI_CHAR_WIDTH) as i32, Ordering::SeqCst); in textui_init_no_alloc()
34 NO_ALLOC_OPERATIONS_INDEX.store(0, Ordering::SeqCst); in next_line()
35 NO_ALLOC_OPERATIONS_LINE.fetch_add(1, Ordering::SeqCst); in next_line()
36 if NO_ALLOC_OPERATIONS_LINE.load(Ordering::SeqCst) >= TRUE_LINE_NUM.load(Ordering::SeqCst) { in next_line()
37 NO_ALLOC_OPERATIONS_LINE.store(0, Ordering::SeqCst); in next_line()
66 let mut space_to_print = 8 - NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst) % 8; in no_init_textui_putchar_window()
69 LineId::new(NO_ALLOC_OPERATIONS_LINE.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
70 LineIndex::new(NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
72 NO_ALLOC_OPERATIONS_INDEX.fetch_add(1, Ordering::SeqCst); in no_init_textui_putchar_window()
78 NO_ALLOC_OPERATIONS_INDEX.fetch_sub(1, Ordering::SeqCst); in no_init_textui_putchar_window()
79 let op_char = NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst); in no_init_textui_putchar_window()
83 LineId::new(NO_ALLOC_OPERATIONS_LINE.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
84 LineIndex::new(NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
87 NO_ALLOC_OPERATIONS_INDEX.fetch_add(1, Ordering::SeqCst); in no_init_textui_putchar_window()
92 NO_ALLOC_OPERATIONS_INDEX.store(0, Ordering::SeqCst); in no_init_textui_putchar_window()
93 NO_ALLOC_OPERATIONS_LINE.fetch_sub(1, Ordering::SeqCst); in no_init_textui_putchar_window()
95 if NO_ALLOC_OPERATIONS_LINE.load(Ordering::SeqCst) < 0 { in no_init_textui_putchar_window()
96 NO_ALLOC_OPERATIONS_LINE.store(0, Ordering::SeqCst); in no_init_textui_putchar_window()
104 if NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst) in no_init_textui_putchar_window()
105 == CHAR_PER_LINE.load(Ordering::SeqCst) in no_init_textui_putchar_window()
111 LineId::new(NO_ALLOC_OPERATIONS_LINE.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
112 LineIndex::new(NO_ALLOC_OPERATIONS_INDEX.load(Ordering::SeqCst)), in no_init_textui_putchar_window()
115 NO_ALLOC_OPERATIONS_INDEX.fetch_add(1, Ordering::SeqCst); in no_init_textui_putchar_window()