它的构造函数创建共享内存及其中的对象。
Its constructor creates the Shared memory and objects in it.
对象A直接从共享内存的起始处开始。
除了实际的文件,设备与共享内存对象都能够被映射。
In addition to actual files, devices and Shared memory objects can be mapped.
如果无法找到这个共享内存对象,就会抛出异常。
If the Shared memory object cannot be found, an exception is thrown.
如果共享内存已经存在,对象的构造就会被跳过。
The object construction is skipped if the Shared memory already exists.
同一个重载的操作符让您可以在共享内存中构造类A、B和C 的对象。
The same overloaded operator allows you to construct objects of class A, B, and C in shared memory.
GEM为对象管理使用了共享内存子系统。
You can gem makes use of the Shared memory subsystem for object management.
如果共享内存尚不存在,就创建共享内存;并在其中创建对象。
Shared memory is created if it does not exist, and the shared object is created within it.
像清单2这样创建共享内存对象。
使用共享内存对象的进程必须在自己的地址空间中映射对象。
For a process to use a Shared memory object, the process has to map the object in its address space.
使用共享内存对象写数据。
因为这个进程要修改共享内存对象的内容,所以使用read _ write。
Because this process modifies the contents of the Shared memory object, you use read_write.
使用mapped_region的另一个好处是可以对共享内存对象进行完全和部分访问。
Another benefit of using mapped_region is that both full and partial access to the Shared memory object is possible.
例如,如果无法创建共享内存对象,就抛出类型为boost: interprocess_exception的异常。
For example, if the Shared memory object cannot be created, an exception of type boost: : interprocess_exception is thrown.
要对共享内存中的对象进行实例化,请定义另外一个类Initializer。
To instantiate the object within the shared memory, define an additional class, Initializer.
本文中将学习如何使用Boostipc库实现共享内存对象、消息队列和同步文件锁。
In this article, you learn how to use the Boost IPC library to implement Shared memory objects, message queues, and synchronized file locking.
与共享内存对象相似,对于以只读方式打开消息队列,应该把open_only属性传递给构造函数。
Similar to the case for a Shared memory object, a message queue that is opened only for reading will have the open_only attribute passed in the constructor.
在清单4中,使用open_only和read_only属性创建共享内存对象。
In Listing 4, you create the Shared memory object using the open_only and read_only attributes.
下面的代码可以从另一个元素类中读取共享的对象。
And the following code can also read it from another element class.
学习资源聚合模型以原子型学习对象和复合型学习对象两种资源构件对网络课程进行封装和组织,实现课程资源的共享与重用。
In the model, the E-course resource is encapsulated in atomic learning objects and composite learning objects, which can enable the resources to be Shared and reused.
系统提供了可用于协调多个线程之间的资源共享的同步对象。
The system provides synchronization objects that can be used to coordinate resource sharing among multiple threads.
共享资源包括内存中的数据比如实例或类变量和外部对象比如文件、数据库连接以及网络连接。
Shared resources include in-memory data such as instance or class variables and external objects such as files, database connections, and network connections.
基于对象存储(OBS)系统具有较好的安全性,能实现跨平台的数据共享,并具有高性能和可扩展性。
Object-Based Storage (OBS) system is secure and flexable to implement data-sharing between different platforms, also it is of high performance and scalability.
该系统在面向对象的应用中对所创建和操纵的对象增加了持久性和共享性。
Presented in this paper is the data model for ORION, a prototype database system that add persistence and sharability to object-oriented application.
与传统存储系统比较,实验证明对象存储是一种具有高性能、高可靠性、跨平台以及安全的数据共享的存储体系结构。
Compared with the traditional storage systems, the experiment has proved OBS is a high-performance, high reliability, cross-platform data sharing and security of the storage structure.
与传统存储系统比较,实验证明对象存储是一种具有高性能、高可靠性、跨平台以及安全的数据共享的存储体系结构。
Compared with the traditional storage systems, the experiment has proved OBS is a high-performance, high reliability, cross-platform data sharing and security of the storage structure.
应用推荐