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

Side by Side Diff: src/vm/links.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 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
« no previous file with comments | « src/vm/links.h ('k') | src/vm/log_print_interceptor.h » ('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) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #include "src/vm/links.h" 5 #include "src/vm/links.h"
6 6
7 #include "src/vm/process.h" 7 #include "src/vm/process.h"
8 #include "src/vm/program.h" 8 #include "src/vm/program.h"
9 #include "src/vm/scheduler.h" 9 #include "src/vm/scheduler.h"
10 10
11 namespace fletch { 11 namespace dartino {
12 12
13 void Links::InsertPort(Port* port) { 13 void Links::InsertPort(Port* port) {
14 ScopedSpinlock locker(&lock_); 14 ScopedSpinlock locker(&lock_);
15 if (ports_.Add(port)) port->IncrementRef(); 15 if (ports_.Add(port)) port->IncrementRef();
16 } 16 }
17 17
18 bool Links::InsertHandle(ProcessHandle* handle) { 18 bool Links::InsertHandle(ProcessHandle* handle) {
19 ScopedSpinlock locker(&lock_); 19 ScopedSpinlock locker(&lock_);
20 if (half_dead_) return false; 20 if (half_dead_) return false;
21 if (handles_.Add(handle)) handle->IncrementRef(); 21 if (handles_.Add(handle)) handle->IncrementRef();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 signal->IncrementRef(); 115 signal->IncrementRef();
116 process->SendSignal(signal); 116 process->SendSignal(signal);
117 process->program()->scheduler()->SignalProcess(process); 117 process->program()->scheduler()->SignalProcess(process);
118 } 118 }
119 } 119 }
120 } 120 }
121 121
122 return signal; 122 return signal;
123 } 123 }
124 124
125 } // namespace fletch 125 } // namespace dartino
OLDNEW
« no previous file with comments | « src/vm/links.h ('k') | src/vm/log_print_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698