// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package webrtc

import 

type atomicBool struct {
	val int32
}

func ( *atomicBool) ( bool) { // nolint: unparam
	var  int32
	if  {
		 = 1
	}

	atomic.StoreInt32(&(.val), )
}

func ( *atomicBool) () bool {
	return atomic.LoadInt32(&(.val)) != 0
}

func ( *atomicBool) ( bool) bool {
	var  int32
	if  {
		 = 1
	}

	return atomic.SwapInt32(&(.val), ) != 0
}