Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: runtime/bin/socket.h

Issue 18080010: Remove static mutexes/monitors from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_SOCKET_H_ 5 #ifndef BIN_SOCKET_H_
6 #define BIN_SOCKET_H_ 6 #define BIN_SOCKET_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 static AddressList<InterfaceSocketAddress>* ListInterfaces( 184 static AddressList<InterfaceSocketAddress>* ListInterfaces(
185 int type, 185 int type,
186 OSError** os_error); 186 OSError** os_error);
187 187
188 static Dart_Port GetServicePort(); 188 static Dart_Port GetServicePort();
189 189
190 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id); 190 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id);
191 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id); 191 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id);
192 192
193 private: 193 private:
194 static dart::Mutex mutex_; 194 static dart::Mutex* mutex_;
195 static int service_ports_size_; 195 static int service_ports_size_;
196 static Dart_Port* service_ports_; 196 static Dart_Port* service_ports_;
197 static int service_ports_index_; 197 static int service_ports_index_;
198 198
199 DISALLOW_ALLOCATION(); 199 DISALLOW_ALLOCATION();
200 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); 200 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket);
201 }; 201 };
202 202
203 203
204 class ServerSocket { 204 class ServerSocket {
(...skipping 14 matching lines...) Expand all
219 219
220 private: 220 private:
221 DISALLOW_ALLOCATION(); 221 DISALLOW_ALLOCATION();
222 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 222 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
223 }; 223 };
224 224
225 } // namespace bin 225 } // namespace bin
226 } // namespace dart 226 } // namespace dart
227 227
228 #endif // BIN_SOCKET_H_ 228 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698