源代码说明:
With this component you can share memory between other processes and instances. By using File Mapping, but without a file underneath, this component allows you to allocate memory and allow other processes to use it. By naming the memory, using the ShareName property, any other process can quickly determine whether the memory is available, read from it and write to it. The component also has built-in ownership functions, RequestOwnership and ReleaseOwnership, so that you can synchronize the access to the memory and therefore make it thread-safe. The memory will be deallocated when no handles to the memory remain open. The handle to the SharedMemory and the Ownership Mutex can be retrieved by the read-only, non-published properties Handle and Mutex respectively.
立即下载
|