Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/shared/AutoHandle.cpp

Issue 10786016: Moved all pipe functionality into a self-containing Communication::Pipe class (Closed)
Patch Set: Created May 31, 2013, 11:48 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "..\engine\stdafx.h"
2
3 #include "AutoHandle.h" 1 #include "AutoHandle.h"
4 2
5 AutoHandle::AutoHandle() 3 AutoHandle::AutoHandle()
6 { 4 {
7 } 5 }
8 6
9 AutoHandle::AutoHandle(HANDLE handle) : handle(handle) 7 AutoHandle::AutoHandle(HANDLE handle) : handle(handle)
10 { 8 {
11 } 9 }
12 10
13 AutoHandle::~AutoHandle() 11 AutoHandle::~AutoHandle()
14 { 12 {
15 CloseHandle(handle); 13 CloseHandle(handle);
16 } 14 }
17 15
18 HANDLE AutoHandle::get() 16 HANDLE AutoHandle::get()
19 { 17 {
20 return handle; 18 return handle;
21 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld