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

Side by Side Diff: src/shared/Communication.h

Issue 10891004: Use a named mutex to avoid race conditions (Closed)
Patch Set: Created June 7, 2013, 8:05 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 #ifndef COMMUNICATION_H 1 #ifndef COMMUNICATION_H
2 #define COMMUNICATION_H 2 #define COMMUNICATION_H
3 3
4 #include <memory> 4 #include <memory>
5 #include <sstream> 5 #include <sstream>
6 #include <stdexcept> 6 #include <stdexcept>
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <Windows.h> 10 #include <Windows.h>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 Pipe(const std::wstring& name, Mode mode); 155 Pipe(const std::wstring& name, Mode mode);
156 ~Pipe(); 156 ~Pipe();
157 157
158 InputBuffer ReadMessage(); 158 InputBuffer ReadMessage();
159 void WriteMessage(OutputBuffer& message); 159 void WriteMessage(OutputBuffer& message);
160 160
161 protected: 161 protected:
162 HANDLE pipe; 162 HANDLE pipe;
163 }; 163 };
164
165 bool PipeExists(const std::wstring& name);
166 } 164 }
167 165
168 #endif 166 #endif
OLDNEW
« src/engine/main.cpp ('K') | « src/engine/main.cpp ('k') | src/shared/Communication.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld