The workaround, if you want more fine-grained control over the deployment of synchronized code, is to use an atomic field updater.
如果您希望对同步代码的部署进行更多细粒度控制,那么解决方案就是使用一个原子字段更新程序。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
正如您在前面看到的那样,静态字段初始值设定项的代码在隐式类型构造函数的内部执行。
This program also demonstrates how static field initializers execute before the code inside an explicit type constructor.
此程序还演示了静态字段初始值设定项如何在显式类型构造函数中的代码之前执行。
The desc field contains the line number and the value contains the code address for the start of that source line.
desc字段包含行号,而value包含源代码行的起始部分的代码地址。
The net effect of the DescriptionBuilderVisitor class code is to construct an array of field definitions matching the fields of the class supplied to the SimpleClassDescription constructor.
DescriptionBuilderVisitor类代码的实际效果是构建一组字段定义,与提供给SimpleClassDescription构造函数的类的字段匹配。
The additional code snippet that has to be added to detect the field type and respond to it by dynamically creating a TDBImage is shown below.
必须添加一些附加代码,以检测字段类型,并通过动态创建TDBImage对此作出响应,这些附加代码片断如下所示。
Enter the HTML code in listing 3 in the Footer field.
在Footer字段中输入清单3所示的HTML代码。
Enter the HTML code shown in listing 1 in the Header field.
在Header字段中输入清单1所示的HTML代码。
Enter the code shown in Listing 1 in the "Additional compiler arguments" field.
键入“Additionalcompilerterarguments”区域中列表1中显示的代码。
The source code in biology are the publications and ideas of the field.
生物学的源代码包括出版物和这个领域上的思想。
The code running on the workstation stores field values in this document that tell the agent what it should do, and the agent can write results to the same document.
运行在工作站上的代码在这个文档中存储值,这些值告诉代理应该做什么,并且代理能够将结果写到相同的文档中。
If you want to avoid the exception, then the data must be truncated to fit the field and you must code additional logic to do the truncation.
如果您希望避免该异常,则必须将数据截断以适应该字段,并且必须编写附加的逻辑代码来处理截断。
In this text field, enter the following code from Listing 14.
在该文本区域中,输入以下代码清单14的代码。
Simply add the lines of code shown in Listing 4 to listen for changes to the ZIP code field.
如清单4所示,只需添加几行代码就可以侦听邮政区码字段的更改。
The following code example shows how to print the field values of all the documents in a view.
以下代码示例展示了如何在一个视图中输出所有文档的字段值。
The new 8-byte DIF field includes a cyclical redundancy code (CRC) to protect the data, a reference tag to protect against misdirected writes, and an application tag.
这个新的8字节dif字段包括一个循环冗余代码(CRC)用以保护数据,一个参考标签用以保护数据免遭误导写入,以及一个应用程序标签。
The alternative is to generate code that always checks to see if the field is resolved before finding out where the field is and then loading the value.
另外一种方法是生成一些代码,用于在查明字段的位置以前一直检查是否已经解析字段,然后加载该值。
The Listing 5 code saves the field information at the time a field is visited, because this information will be needed later if the field has an annotation present.
清单5的代码保存了访问字段时的字段信息,因为如果该字段有注释呈现的话,以后将会需要该信息。
Therefore, the code retrieves the content field and then creates a new one that is ready for indexing.
因此,此代码将检索内容字段,然后创建一个可供索引的新文档。
Subsequent executions, of course, will benefit from the result of patching the code so that the instance or static field, or method target, is more directly referenced.
当然,后续执行将从修补代码中获益,从而可以更直接地引用实例、静态字段或方法目标。
Research in the field saw scientists reconstruct the genetic code of the woolly mammoth in 2008, and our Neanderthal Cousins earlier this year.
在该领域的研究中,科学家于2008年重建了披毛猛犸象的遗传密码,并在今年早些时候重建了早期智人尼安德特人的遗传密码。
Add code there to get the new value of that field and to publish it to the property broker.
添加代码以获得该字段的新值并且把它发布给属性代理。
You have a date field, a postal code, a field whose input is conditional upon the content of another, and so on.
您有一个日期区域,一个邮政编码,一个输入区域,以及等等。
That class has, from the "employees" table somewhere in the database, the field "name" so the raw code to set the name would be as follows.
那个类来自于数据库中某处的“employees”表,具有“name”字段,因此设置其名字的原始代码可以如下所示。
Second, I need to change the Person code by adding a field and the appropriate property methods to track mood, as shown in Listing 4.
第二步,我需要更改person代码,添加一个字段和一些用于跟踪情绪的属性方法,如清单4所示。
You need to include only the updated fields in the document Atom entry when updating the document; in the preceding code snippet, we updated the Price field.
在更新文档时仅需在文档Atom条目中包含已更新的字段;在上一个代码片段中,我们更新了Price字段。
Note the need for escaping the field values by using addslashes(); otherwise, values with quotation marks would break the code.
注意,您需要使用addslashes()来对字段值进行转义,否则,带有引号的值将中断代码。
Consider the following code, where the intention is that the volatile field initialized is supposed to indicate that initialization has been completed.
考虑下面的代码,其意图是假定易失性字段initialized用于表明初始化已经完成了。
Listing 6 shows the code to create the Field component.
清单6显示了创建Field组件的代码。
In this script, the field separator is specified within the code itself (by setting the FS variable), while our previous example set FS by passing the -f ":" option to awk on the command line.
在该脚本中,(通过设置FS变量)在代码中指定字段分隔符,而前一示例通过在命令行向awk传递- F “: ”选项来设置FS。
应用推荐