| OLD | NEW | 
|    1 // Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file |    1 // Copyright (c) 2016, 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 "platform/globals.h"  // NOLINT |    5 #include "platform/globals.h"  // NOLINT | 
|    6 #if defined(TARGET_OS_FUCHSIA) |    6 #if defined(TARGET_OS_FUCHSIA) | 
|    7  |    7  | 
|    8 #include "vm/os_thread.h" |    8 #include "vm/os_thread.h" | 
|    9 #include "vm/os_thread_fuchsia.h" |    9 #include "vm/os_thread_fuchsia.h" | 
|   10  |   10  | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  162 } |  162 } | 
|  163  |  163  | 
|  164  |  164  | 
|  165 ThreadId OSThread::GetCurrentThreadId() { |  165 ThreadId OSThread::GetCurrentThreadId() { | 
|  166   return pthread_self(); |  166   return pthread_self(); | 
|  167 } |  167 } | 
|  168  |  168  | 
|  169  |  169  | 
|  170 #ifndef PRODUCT |  170 #ifndef PRODUCT | 
|  171 ThreadId OSThread::GetCurrentThreadTraceId() { |  171 ThreadId OSThread::GetCurrentThreadTraceId() { | 
|  172   UNIMPLEMENTED(); |  172   return pthread_self(); | 
|  173   return 0; |  | 
|  174 } |  173 } | 
|  175 #endif  // PRODUCT |  174 #endif  // PRODUCT | 
|  176  |  175  | 
|  177  |  176  | 
|  178 ThreadJoinId OSThread::GetCurrentThreadJoinId(OSThread* thread) { |  177 ThreadJoinId OSThread::GetCurrentThreadJoinId(OSThread* thread) { | 
|  179   ASSERT(thread != NULL); |  178   ASSERT(thread != NULL); | 
|  180   // Make sure we're filling in the join id for the current thread. |  179   // Make sure we're filling in the join id for the current thread. | 
|  181   ASSERT(thread->id() == GetCurrentThreadId()); |  180   ASSERT(thread->id() == GetCurrentThreadId()); | 
|  182   // Make sure the join_id_ hasn't been set, yet. |  181   // Make sure the join_id_ hasn't been set, yet. | 
|  183   DEBUG_ASSERT(thread->join_id_ == kInvalidThreadJoinId); |  182   DEBUG_ASSERT(thread->join_id_ == kInvalidThreadJoinId); | 
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  427 void Monitor::NotifyAll() { |  426 void Monitor::NotifyAll() { | 
|  428   // When running with assertions enabled we track the owner. |  427   // When running with assertions enabled we track the owner. | 
|  429   ASSERT(IsOwnedByCurrentThread()); |  428   ASSERT(IsOwnedByCurrentThread()); | 
|  430   int result = pthread_cond_broadcast(data_.cond()); |  429   int result = pthread_cond_broadcast(data_.cond()); | 
|  431   VALIDATE_PTHREAD_RESULT(result); |  430   VALIDATE_PTHREAD_RESULT(result); | 
|  432 } |  431 } | 
|  433  |  432  | 
|  434 }  // namespace dart |  433 }  // namespace dart | 
|  435  |  434  | 
|  436 #endif  // defined(TARGET_OS_FUCHSIA) |  435 #endif  // defined(TARGET_OS_FUCHSIA) | 
| OLD | NEW |