Namespace: Cudafy.Atomics
Assembly: Cudafy (in Cudafy.dll) Version: 1.0.4106.20170

Syntax

C#
public static uint atomicCAS(
	this GThread thread,
	ref uint address,
	uint compare,
	uint val
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function atomicCAS ( _
	thread As GThread, _
	ByRef address As UInteger, _
	compare As UInteger, _
	val As UInteger _
) As UInteger
Visual C++
[ExtensionAttribute]
public:
static unsigned int atomicCAS(
	GThread^ thread, 
	unsigned int% address, 
	unsigned int compare, 
	unsigned int val
)

Parameters

thread
Type: Cudafy..::..GThread
address
Type: System..::..UInt32%
compare
Type: System..::..UInt32
val
Type: System..::..UInt32

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GThread. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also