OSDN Git Service

Fix mac build
authorMathieu Chartier <mathieuc@google.com>
Tue, 14 Jul 2015 17:05:45 +0000 (10:05 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 14 Jul 2015 17:05:45 +0000 (10:05 -0700)
Untested.

Change-Id: I1b7803f2fdcd7f509614aa9d3dce414e50a6119d

runtime/thread_list.cc

index 386f81f..7c40eb7 100644 (file)
@@ -585,8 +585,10 @@ void ThreadList::SuspendAllInternal(Thread* self, Thread* ignore1, Thread* ignor
 
   // Wait for the barrier to be passed by all runnable threads. This wait
   // is done with a timeout so that we can detect problems.
+#if ART_USE_FUTEXES
   timespec wait_timeout;
   InitTimeSpec(true, CLOCK_MONOTONIC, 10000, 0, &wait_timeout);
+#endif
   while (true) {
     int32_t cur_val = pending_threads.LoadRelaxed();
     if (LIKELY(cur_val > 0)) {