| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/thread.h" | 5 #include "platform/thread.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <sys/time.h> | 8 #include <sys/time.h> |
| 9 | 9 |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 #define VALIDATE_PTHREAD_RESULT(result) \ | 14 #define VALIDATE_PTHREAD_RESULT(result) \ |
| 15 if (result != 0) { \ | 15 if (result != 0) { \ |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 | 242 |
| 243 | 243 |
| 244 void Monitor::NotifyAll() { | 244 void Monitor::NotifyAll() { |
| 245 // TODO(iposva): Do we need to track lock owners? | 245 // TODO(iposva): Do we need to track lock owners? |
| 246 int result = pthread_cond_broadcast(data_.cond()); | 246 int result = pthread_cond_broadcast(data_.cond()); |
| 247 VALIDATE_PTHREAD_RESULT(result); | 247 VALIDATE_PTHREAD_RESULT(result); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace dart | 250 } // namespace dart |
| OLD | NEW |