The current value of the atomic variable.
原子的变量的当前值。
The value of the atomic variable before the call.
原子变量的值在调用前。
To declare an atomic variable, you simply declare a variable of type atomic_t.
要声明一个原子变量(atomic variable),首先声明一个atomic _ t类型的变量。
It's also possible to initialize the atomic variable at runtime using the atomic_set function.
也可以使用atomic_set function在运行时对原子变量进行初始化。
Next, you ensure that your atomic variable is initialized using the ATOMIC_INIT symbolic constant.
接下来,需确保您的原子变量使用ATOMIC_INIT符号常量进行了初始化。
These allow the atomic variable to be manipulated and then tested (all performed as one atomic operation).
这些例程允许对原子变量进行操纵和测试(作为一个原子操作来执行)。
You can read the contents of an atomic variable with atomic_read and also add a specific value to a variable with atomic_add.
可以使用 atomic_read读取原子变量中的内容,也可以使用 atomic_add 为一个变量添加指定值。
One special function called atomic_add_negative is used to add to the atomic variable and then return true if the resulting value is negative.
一个叫做 atomic_add_negative 的特殊函数被添加到原子变量中,然后当结果值为负数时返回真(true)。
While the atomic variable classes might look superficially like the SynchronizedCounter example in Listing 1, the similarity is only superficial.
虽然原子变量类表面看起来与清单1中的SynchronizedCounter例子一样,但相似仅是表面的。
This means that read and write operations that do not modify the value of an atomic variable are synchronized, not just the important read-update-write operations.
这表示,不修改原子变量值的read和write操作是同步的,不仅仅是重要的 read-update-write 操作。
The atomic variable classes can be thought of as a generalization of volatile variables, extending the concept of volatile variables to support atomic conditional compare-and-set updates.
原子变量类可以认为是volatile变量的泛化,它扩展了可变变量的概念,来支持原子条件的比较并设置更新。
Comparing a variable having an atomic value (number, Boolean, or string) to another such variable or a literal atomic value, and expecting the type of one to be cast automatically to the other type.
把包含原子值(数字、布尔值或字符串)的变量和另一个此类变量或者文字原子值比较,希望一种类型自动转换成另一种类型。
The atomic type that the variable type should match up to.
变量类型应该匹配的原子类型。
To ensure integrity across multiple instances of this flow, the use and updating of the variable is enclosed within a "begin atomic...end" block.
为了跨此流的多个实例确保完整性,变量的使用和更新都包含在“beginatomic...end”块中。
An item is a node or an atomic value, so this variable can contain anything.
每个item是一个节点或原子值,因此此变量可以包含任何内容。
In cases where the variable operation is non-atomic and can be accessed by multiple threads, don't rely on volatile synchronization facilities.
在那些非原子且可由多个线程访问的易变操作中,一定不能够依赖于volatile的同步机制。
The variable $values is neither a node-set nor an IDN; it is just a sequence of atomic double-precision numbers.
变量 $values既不是节点集也不是IDN,仅仅是一个原子性的双精度数序列。
This paper presents a variable multigroup method for calculation in non-equilibrium radiative transfer considered atomic line cross section shift.
针对非平衡辐射输运多群近似计算由线截面漂移引起的计算问题,提出了可变分群方法。
Increments a specified variable and stores the result, as an atomic operation.
以原子操作的形式递增指定变量的值并存储结果。
Decrements the specified variable and stores the result, as an atomic operation.
递减特定变数并将结果储存起来,成为不可部分完成的作业。
Decrements a specified variable and stores the result, as an atomic operation.
以原子操作的形式递减指定变量的值并存储结果。
Decrements a specified variable and stores the result, as an atomic operation.
以原子操作的形式递减指定变量的值并存储结果。
应用推荐