Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
4a09b953
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a09b953
编写于
5月 16, 2017
作者:
S
Sam Harwell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Additional use and development comments for MemoryMappedInfo
上级
73aad3f2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
0 deletion
+16
-0
src/Workspaces/Core/Desktop/Workspace/Host/TemporaryStorage/TemporaryStorageServiceFactory.CopiedMemoryMappedViewHandle.cs
...raryStorageServiceFactory.CopiedMemoryMappedViewHandle.cs
+3
-0
src/Workspaces/Core/Desktop/Workspace/Host/TemporaryStorage/TemporaryStorageServiceFactory.MemoryMappedInfo.cs
...torage/TemporaryStorageServiceFactory.MemoryMappedInfo.cs
+13
-0
未找到文件。
src/Workspaces/Core/Desktop/Workspace/Host/TemporaryStorage/TemporaryStorageServiceFactory.CopiedMemoryMappedViewHandle.cs
浏览文件 @
4a09b953
...
...
@@ -18,6 +18,9 @@ internal partial class TemporaryStorageServiceFactory
/// <para><see cref="CriticalHandle"/> types are not reference counted, and are thus somewhat limited in their
/// usefulness. However, this handle class has tightly restricted accessibility and is only used by managed
/// code which does not rely on it counting references.</para>
///
/// <para>This is a supporting class for <see cref="MemoryMappedInfo"/>. See additional comments on that
/// class.</para>
/// </remarks>
private
unsafe
sealed
class
CopiedMemoryMappedViewHandle
:
CriticalHandleZeroOrMinusOneIsInvalid
{
...
...
src/Workspaces/Core/Desktop/Workspace/Host/TemporaryStorage/TemporaryStorageServiceFactory.MemoryMappedInfo.cs
浏览文件 @
4a09b953
...
...
@@ -18,6 +18,19 @@ internal partial class TemporaryStorageServiceFactory
/// most of our view will have short lifetime, but there are cases where view might live a bit longer such as
/// metadata dll shadow copy. shared view will help those cases.
/// </summary>
/// <remarks>
/// <para>Instances of this class should be disposed when they are no longer needed. After disposing this
/// instance, it should no longer be used. However, streams obtained through <see cref="CreateReadableStream"/>
/// or <see cref="CreateWritableStream"/> will not be invalidated until they are disposed independently (which
/// may occur before or after the <see cref="MemoryMappedInfo"/> is disposed.</para>
///
/// <para>This class and its nested types have familiar APIs and predictable behavior when used in other code,
/// but are non-trivial to work on. The implementations of <see cref="IDisposable"/> adhere to the best
/// practices described in
/// <see href="http://joeduffyblog.com/2005/04/08/dg-update-dispose-finalization-and-resource-management/">DG
/// Update: Dispose, Finalization, and Resource Management</see>. Additional notes regarding operating system
/// behavior leveraged for efficiency are given in comments.</para>
/// </remarks>
internal
sealed
class
MemoryMappedInfo
:
IDisposable
{
private
readonly
string
_name
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录