atomic_store

atomic_store (원자적 저장)

지정된 메모리 위치에 값을 저장하는 원자 내장 함수예요.

출처: Rust 공식 문서

본문

지정된 메모리 위치에 값을 저장해요. T 는 정수 또는 포인터 타입이어야 해요. 안정화된 버전은 원자 타입의 store 메서드로 사용할 수 있어요. 예를 들어 AtomicBool::store 가 있어요.

pub unsafe fn atomic_store<T, const ORD: AtomicOrdering >(dst: *mut T , val: T) where T: Copy ,

더 알아보기 (Learn more)

Rust 공식 문서