| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 #ifndef SRC_VM_PROCESS_H_ | 5 #ifndef SRC_VM_PROCESS_H_ |
| 6 #define SRC_VM_PROCESS_H_ | 6 #define SRC_VM_PROCESS_H_ |
| 7 | 7 |
| 8 #include "src/shared/atomic.h" | 8 #include "src/shared/atomic.h" |
| 9 #include "src/shared/random.h" | 9 #include "src/shared/random.h" |
| 10 | 10 |
| 11 #include "src/vm/debug_info.h" | 11 #include "src/vm/debug_info.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 330 } |
| 331 if (value != from) break; | 331 if (value != from) break; |
| 332 if (state_.compare_exchange_weak(value, to)) return true; | 332 if (state_.compare_exchange_weak(value, to)) return true; |
| 333 } | 333 } |
| 334 return false; | 334 return false; |
| 335 } | 335 } |
| 336 | 336 |
| 337 } // namespace fletch | 337 } // namespace fletch |
| 338 | 338 |
| 339 #endif // SRC_VM_PROCESS_H_ | 339 #endif // SRC_VM_PROCESS_H_ |
| OLD | NEW |