Searched refs:deadline (Results 1 - 25 of 133) sorted by relevance

123456

/external/mockito/src/test/java/org/mockitousage/verification/
H A DDelayedExecution.java20 * Defines the number of milliseconds we expecting a Thread might need to unpark, we use this to avoid "oversleeping" while awaiting the deadline for
31 long deadline = timeUnit.toMillis(delay) + currentTimeMillis();
33 executor.submit(delayedExecution(r, deadline));
44 private static Runnable delayedExecution(final Runnable r, final long deadline) { argument
49 parkUntil(deadline - MAX_EXPECTED_OVERSLEEP_MILLIS);
50 //now we closing to the deadline by burning CPU-time in a loop
51 burnRemaining(deadline);
53 System.out.println("[DelayedExecution] exec delay = "+(currentTimeMillis() - deadline)+"ms");
62 private void burnRemaining(final long deadline) {
65 remaining = deadline
[all...]
/external/tensorflow/tensorflow/core/kernels/batching_util/
H A Dperiodic_function.cc70 const int64 deadline = start + options_.startup_delay_micros; local
71 options_.env->SleepForMicroseconds(deadline - start);
84 // The deadline is relative to when the last function started.
85 const int64 deadline = begin + interval_micros_; local
87 // We want to sleep until 'deadline'.
88 if (deadline > end) {
91 << " to " << (deadline - end);
93 options_.env->SleepForMicroseconds(deadline - end);
/external/libmojo/mojo/edk/system/
H A Dtest_utils.cc50 void Sleep(MojoDeadline deadline) { argument
51 CHECK_LE(deadline,
54 base::TimeDelta::FromMicroseconds(static_cast<int64_t>(deadline)));
H A Dtest_utils.h34 void Sleep(MojoDeadline deadline);
H A Dwaiter.cc40 // TODO(vtl): Fast-path the |deadline == 0| case?
41 MojoResult Waiter::Wait(MojoDeadline deadline, uintptr_t* context) { argument
59 // Treat any out-of-range deadline as "forever" (which is wrong, but okay
62 if (deadline > static_cast<uint64_t>(std::numeric_limits<int64_t>::max())) {
68 // variables take an absolute deadline.
71 base::TimeDelta::FromMicroseconds(static_cast<int64_t>(deadline));
H A Dwaiter.h40 // - |MOJO_RESULT_DEADLINE_EXCEEDED| if the deadline was exceeded; in this
58 MojoResult Wait(MojoDeadline deadline, uintptr_t* context);
H A Dwaiter_test_utils.cc28 MojoDeadline deadline,
37 deadline_(deadline),
26 WaiterThread(scoped_refptr<Dispatcher> dispatcher, MojoHandleSignals handle_signals, MojoDeadline deadline, uintptr_t context, bool* did_wait_out, MojoResult* result_out, uintptr_t* context_out, HandleSignalsState* signals_state_out) argument
/external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/
H A DHandle.java30 public WaitResult wait(Core.HandleSignals signals, long deadline); argument
/external/guava/guava-testlib/src/com/google/common/testing/
H A DGcFinalization.java135 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
154 } while (System.nanoTime() - deadline < 0);
170 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
184 } while (System.nanoTime() - deadline < 0);
223 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
235 } while (System.nanoTime() - deadline < 0);
/external/valgrind/drd/tests/
H A Dpth_inconsistent_cond_wait.c78 struct timespec deadline; local
83 memset(&deadline, 0, sizeof(deadline));
84 deadline.tv_sec = now.tv_sec + 2;
85 deadline.tv_nsec = now.tv_usec * 1000;
86 PTH_CALL(pthread_cond_timedwait(&s_cond, mutex, &deadline));
/external/libmojo/mojo/public/c/system/
H A Dfunctions.h62 // - Until |deadline| has passed.
64 // If |deadline| is |MOJO_DEADLINE_INDEFINITE|, this will wait "forever" (until
65 // one of the other wait termination conditions is satisfied). If |deadline| is
79 // |MOJO_RESULT_DEADLINE_EXCEEDED| if the deadline has passed without any of
91 MojoDeadline deadline,
99 // - |deadline| has passed.
105 // See |MojoWait()| for more details about |deadline|.
129 // |MOJO_RESULT_DEADLINE_EXCEEDED| if the deadline has passed without any of
137 MojoDeadline deadline,
/external/python/cpython3/Lib/test/
H A Dtest_wait3.py21 deadline = time.monotonic() + 10.0
22 while time.monotonic() <= deadline:
H A Dtest_wait4.py23 deadline = time.monotonic() + 10.0
24 while time.monotonic() <= deadline:
/external/v8/src/heap/
H A Dembedder-tracing.cc41 double deadline, EmbedderHeapTracer::AdvanceTracingActions actions) {
45 return remote_tracer_->AdvanceTracing(deadline, actions);
40 Trace( double deadline, EmbedderHeapTracer::AdvanceTracingActions actions) argument
H A Dincremental-marking-job.cc35 double deadline = local
38 deadline, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD,
/external/libvpx/libvpx/
H A Dvpxenc.h41 int deadline; member in struct:VpxEncoderConfig
H A Dwarnings.c27 "Lag in frames is ignored when deadline is set to realtime for cbr mode.";
80 int lag_in_frames, int deadline, int rc_end_usage,
82 if (deadline == VPX_DL_REALTIME && lag_in_frames != 0 && rc_end_usage == 1)
96 stream_config->g_lag_in_frames, global_config->deadline,
79 check_lag_in_frames_realtime_deadline( int lag_in_frames, int deadline, int rc_end_usage, struct WarningList *warning_list) argument
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
H A DWaitingThread.java130 * @param deadline when to time out, or <code>null</code> for no timeout
142 public boolean await(Date deadline) argument
161 if (deadline != null) {
162 success = this.cond.awaitUntil(deadline);
/external/libvpx/libvpx/test/
H A Dcodec_factory.h41 unsigned long deadline,
97 VP8Encoder(vpx_codec_enc_cfg_t cfg, unsigned long deadline, argument
99 : Encoder(cfg, deadline, init_flags, stats) {}
131 unsigned long deadline,
135 return new VP8Encoder(cfg, deadline, init_flags, stats);
138 (void)deadline;
193 VP9Encoder(vpx_codec_enc_cfg_t cfg, unsigned long deadline, argument
195 : Encoder(cfg, deadline, init_flags, stats) {}
227 unsigned long deadline,
231 return new VP9Encoder(cfg, deadline, init_flag
130 CreateEncoder(vpx_codec_enc_cfg_t cfg, unsigned long deadline, const unsigned long init_flags, TwopassStatsStore *stats) const argument
226 CreateEncoder(vpx_codec_enc_cfg_t cfg, unsigned long deadline, const unsigned long init_flags, TwopassStatsStore *stats) const argument
[all...]
/external/autotest/client/site_tests/autoupdate_DisconnectReconnectNetwork/
H A Dautoupdate_DisconnectReconnectNetwork.py35 deadline=5, timeout=5) == 0,
53 result = utils.ping(self._update_server, deadline=5, timeout=5)
/external/libbrillo/brillo/dbus/
H A Ddbus_connection.cc35 base::TimeTicks deadline = base::TimeTicks::Now() + timeout;
51 } while (base::TimeTicks::Now() < deadline);
/external/libmojo/mojo/public/cpp/system/
H A Dhandle.h189 MojoDeadline deadline,
191 return MojoWait(handle.value(), signals, deadline, signals_state);
232 MojoDeadline deadline,
242 MojoWaitMany(nullptr, nullptr, 0, deadline, nullptr, nullptr));
253 deadline, &result_index, first_state);
263 MojoDeadline deadline,
272 MojoWaitMany(nullptr, nullptr, 0, deadline, nullptr, nullptr));
280 static_cast<uint32_t>(handles.size()), deadline, &result_index, nullptr);
187 Wait(Handle handle, MojoHandleSignals signals, MojoDeadline deadline, MojoHandleSignalsState* signals_state) argument
230 WaitMany(const HandleVectorType& handles, const FlagsVectorType& signals, MojoDeadline deadline, SignalsStateVectorType* signals_states) argument
261 WaitMany(const HandleVectorType& handles, const FlagsVectorType& signals, MojoDeadline deadline, decltype(nullptr) signals_states) argument
/external/libmojo/mojo/public/js/
H A Dcore.js146 * satisfied or until |deadline| is passed. See MojoWait for more information.
150 * @param {MojoDeadline} deadline Stops waiting if this is reached.
153 function wait(handle, signals, deadline) { [native code] }
158 * |flags[handles.length-1]|, respectively, or until |deadline| has passed.
164 * @param {MojoDeadline} deadline Stops waiting if this is reached.
167 function waitMany(handles, signals, deadline) { [native code] }
/external/python/cpython2/Modules/_multiprocessing/
H A Dpipe_connection.c95 DWORD bytes, deadline, delay; local
109 deadline = GetTickCount() + (DWORD)(1000 * timeout + 0.5);
120 difference = deadline - GetTickCount();
H A Dsemaphore.c212 # define sem_timedwait(sem,deadline) sem_timedwait_save(sem,deadline,_save)
215 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) argument
222 tvdeadline.tv_sec = deadline->tv_sec;
223 tvdeadline.tv_usec = deadline->tv_nsec / 1000;
280 struct timespec deadline = {0}; local
308 deadline.tv_sec = now.tv_sec + sec;
309 deadline.tv_nsec = now.tv_usec * 1000 + nsec;
310 deadline.tv_sec += (deadline
[all...]

Completed in 648 milliseconds

123456