Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 25 of 182) sorted by relevance

12345678

/external/guava/guava/src/com/google/common/util/concurrent/
DMonitor.java419 public void enterWhen(Guard guard) throws InterruptedException { in enterWhen() argument
420 if (guard.monitor != this) { in enterWhen()
429 if (!guard.isSatisfied()) { in enterWhen()
430 await(guard, signalBeforeWaiting); in enterWhen()
443 public void enterWhenUninterruptibly(Guard guard) { in enterWhenUninterruptibly() argument
444 if (guard.monitor != this) { in enterWhenUninterruptibly()
453 if (!guard.isSatisfied()) { in enterWhenUninterruptibly()
454 awaitUninterruptibly(guard, signalBeforeWaiting); in enterWhenUninterruptibly()
471 public boolean enterWhen(Guard guard, long time, TimeUnit unit) throws InterruptedException { in enterWhen() argument
473 if (guard.monitor != this) { in enterWhen()
[all …]
/external/valgrind/drd/
Ddrd_libstdcxx_intercepts.c46 int __cxa_guard_acquire(void* guard);
47 void __cxa_guard_release(void* guard) __attribute__((__nothrow__));
48 void __cxa_guard_abort(void* guard) __attribute__((__nothrow__));
69 int __cxa_guard_acquire_intercept(void *guard) in __cxa_guard_acquire_intercept() argument
75 guard, mutex_type_cxa_guard, 0, 0, 0); in __cxa_guard_acquire_intercept()
76 CALL_FN_W_W(ret, fn, guard); in __cxa_guard_acquire_intercept()
78 guard, 1, 0, 0, 0); in __cxa_guard_acquire_intercept()
81 guard, mutex_type_cxa_guard, 0, 0, 0); in __cxa_guard_acquire_intercept()
83 guard, 0, 0, 0, 0); in __cxa_guard_acquire_intercept()
89 (void *guard), (guard));
[all …]
Ddrd_load_store.c354 IRExpr* const guard/* NULL => True */) in instr_trace_mem_load() argument
367 if (guard) di->guard = guard; in instr_trace_mem_load()
378 IRExpr* const guard/* NULL => True */) in instr_trace_mem_store() argument
471 if (guard) di->guard = guard; in instr_trace_mem_store()
477 IRExpr* const guard/* NULL => True */) in instrument_load() argument
525 if (guard) di->guard = guard; in instrument_load()
589 if (guard_expr) di->guard = guard_expr; in instrument_store()
659 instrument_store(bb, addr, data, sg->guard); in DRD_()
673 sizeofIRType(type), lg->guard); in DRD_()
676 sizeofIRType(type), lg->guard); in DRD_()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java142 TestGuard guard = new TestGuard(true); in testEnterWhen_initiallyTrue() local
143 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue() local
147 TestGuard guard = new TestGuard(false); in testEnterWhen_initiallyFalse() local
148 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse() local
150 guard.setSatisfied(true); in testEnterWhen_initiallyFalse()
156 TestGuard guard = new TestGuard(true); in testEnterWhen_alreadyOccupied() local
158 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied() local
164 TestGuard guard = new TestGuard(true); in testEnterIf_initiallyTrue() local
165 thread1.callAndAssertReturns(true, enterIf(), guard); in testEnterIf_initiallyTrue()
170 TestGuard guard = new TestGuard(false); in testEnterIf_initiallyFalse() local
[all …]
/external/compiler-rt/lib/safestack/
Dsafestack.cc95 static inline void *unsafe_stack_alloc(size_t size, size_t guard) { in unsafe_stack_alloc() argument
96 CHECK_GE(size + guard, size); in unsafe_stack_alloc()
97 void *addr = MmapOrDie(size + guard, "unsafe_stack_alloc"); in unsafe_stack_alloc()
98 MprotectNoAccess((uptr)addr, (uptr)guard); in unsafe_stack_alloc()
99 return (char *)addr + guard; in unsafe_stack_alloc()
102 static inline void unsafe_stack_setup(void *start, size_t size, size_t guard) { in unsafe_stack_setup() argument
104 CHECK_GE((char *)start + guard, (char *)start); in unsafe_stack_setup()
111 unsafe_stack_guard = guard; in unsafe_stack_setup()
176 size_t guard = 0; in INTERCEPTOR() local
180 pthread_attr_getguardsize(attr, &guard); in INTERCEPTOR()
[all …]
/external/vixl/src/vixl/a64/
Dmacro-assembler-a64.h932 SingleEmissionCheckScope guard(this); in Adr()
938 SingleEmissionCheckScope guard(this); in Adrp()
945 SingleEmissionCheckScope guard(this); in Asr()
953 SingleEmissionCheckScope guard(this); in Asr()
985 SingleEmissionCheckScope guard(this); in Bfm()
995 SingleEmissionCheckScope guard(this); in Bfi()
1005 SingleEmissionCheckScope guard(this); in Bfxil()
1013 SingleEmissionCheckScope guard(this); in Bl()
1019 SingleEmissionCheckScope guard(this); in Blr()
1025 SingleEmissionCheckScope guard(this); in Br()
[all …]
/external/vulkan-validation-layers/demos/smoke/
Dgenerate-dispatch-table77 def __init__(self, name, version, guard=None, commands=[]): argument
80 self.guard = guard
89 (repr(self.name), repr(self.version), repr(self.guard)))
99 vk_core = Extension(name='VK_core', version=0, guard=None, commands=[
239 vk_khr_surface = Extension(name='VK_KHR_surface', version=25, guard=None, commands=[
247 vk_khr_swapchain = Extension(name='VK_KHR_swapchain', version=67, guard=None, commands=[
255 vk_khr_display = Extension(name='VK_KHR_display', version=21, guard=None, commands=[
265 vk_khr_display_swapchain = Extension(name='VK_KHR_display_swapchain', version=9, guard=None, comman…
269 vk_khr_xlib_surface = Extension(name='VK_KHR_xlib_surface', version=6, guard='VK_USE_PLATFORM_XLIB_…
274 vk_khr_xcb_surface = Extension(name='VK_KHR_xcb_surface', version=6, guard='VK_USE_PLATFORM_XCB_KHR…
[all …]
/external/bison/lib/glthread/
Dlock.c56 err = pthread_mutex_lock (&lock->guard); in glthread_rwlock_rdlock_multithreaded()
64 pthread_mutex_unlock (&lock->guard); in glthread_rwlock_rdlock_multithreaded()
68 err = pthread_mutex_unlock (&lock->guard); in glthread_rwlock_rdlock_multithreaded()
82 err = pthread_mutex_lock (&lock->guard); in glthread_rwlock_wrlock_multithreaded()
90 pthread_mutex_unlock (&lock->guard); in glthread_rwlock_wrlock_multithreaded()
94 err = pthread_mutex_unlock (&lock->guard); in glthread_rwlock_wrlock_multithreaded()
347 err = pthread_mutex_lock (&lock->guard); in glthread_recursive_lock_lock_multithreaded()
355 pthread_mutex_unlock (&lock->guard); in glthread_recursive_lock_lock_multithreaded()
359 err = pthread_mutex_unlock (&lock->guard); in glthread_recursive_lock_lock_multithreaded()
640 lock->guard.done = 1; in glthread_lock_init_func()
[all …]
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsignal_segv_handler.cc24 void *guard; variable
27 mprotect(guard, page_size, PROT_READ | PROT_WRITE); in handler()
38 guard = mmap(0, 3 * page_size, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); in main()
39 guard = (char*)guard + page_size; // work around a kernel bug in main()
41 mprotect(guard, page_size, PROT_NONE); in main()
42 *(int*)guard = 1; in main()
/external/valgrind/lackey/
Dlk_main.c367 static void instrument_detail(IRSB* sb, Op op, IRType type, IRAtom* guard) in instrument_detail() argument
380 if (guard) di->guard = guard; in instrument_detail()
416 IRAtom* guard; /* :: Ity_I1, or NULL=="always True" */ member
513 if (ev->guard) { in flushEvents()
514 di->guard = ev->guard; in flushEvents()
540 evt->guard = NULL; in addEvent_Ir()
546 void addEvent_Dr_guarded ( IRSB* sb, IRAtom* daddr, Int dsize, IRAtom* guard ) in addEvent_Dr_guarded() argument
559 evt->guard = guard; in addEvent_Dr_guarded()
573 void addEvent_Dw_guarded ( IRSB* sb, IRAtom* daddr, Int dsize, IRAtom* guard ) in addEvent_Dw_guarded() argument
586 evt->guard = guard; in addEvent_Dw_guarded()
[all …]
/external/valgrind/none/tests/ppc64/
Dround.c599 int guard = 0; in check_single_guarded_arithmetic_op() local
619 guard = g & 7; in check_single_guarded_arithmetic_op()
634 guard = (0x10-g); in check_single_guarded_arithmetic_op()
635 Z.layout.frac = guard>>3; in check_single_guarded_arithmetic_op()
638 guard &= 7; in check_single_guarded_arithmetic_op()
651 guard = g & 7; in check_single_guarded_arithmetic_op()
655 guard = g & 7; in check_single_guarded_arithmetic_op()
656 if ((guard & 1) == 0) { in check_single_guarded_arithmetic_op()
689 guard = ((g & 7) + 0x4) & 7; in check_single_guarded_arithmetic_op()
711 switch(guard) { in check_single_guarded_arithmetic_op()
[all …]
/external/valgrind/none/tests/ppc32/
Dround.c599 int guard = 0; in check_single_guarded_arithmetic_op() local
619 guard = g & 7; in check_single_guarded_arithmetic_op()
634 guard = (0x10-g); in check_single_guarded_arithmetic_op()
635 Z.layout.frac = guard>>3; in check_single_guarded_arithmetic_op()
638 guard &= 7; in check_single_guarded_arithmetic_op()
651 guard = g & 7; in check_single_guarded_arithmetic_op()
655 guard = g & 7; in check_single_guarded_arithmetic_op()
656 if ((guard & 1) == 0) { in check_single_guarded_arithmetic_op()
689 guard = ((g & 7) + 0x4) & 7; in check_single_guarded_arithmetic_op()
711 switch(guard) { in check_single_guarded_arithmetic_op()
[all …]
/external/libcxxabi/src/
Dcxa_guard.cpp118 uint64_t guard; in get_lock() member
130 uint64_t guard; in set_lock() member
134 x = f.guard; in set_lock()
143 uint32_t guard; in get_lock() member
155 uint32_t guard; in set_lock() member
159 x = f.guard; in set_lock()
/external/v8/src/libplatform/
Dtask-queue.cc16 base::LockGuard<base::Mutex> guard(&lock_); in ~TaskQueue() local
23 base::LockGuard<base::Mutex> guard(&lock_); in Append() local
33 base::LockGuard<base::Mutex> guard(&lock_); in GetNext() local
50 base::LockGuard<base::Mutex> guard(&lock_); in Terminate() local
Ddefault-platform.cc41 base::LockGuard<base::Mutex> guard(&lock_); in ~DefaultPlatform() local
66 base::LockGuard<base::Mutex> guard(&lock_); in SetThreadPoolSize() local
77 base::LockGuard<base::Mutex> guard(&lock_); in EnsureInitialized() local
115 base::LockGuard<base::Mutex> guard(&lock_); in PumpMessageLoop() local
144 base::LockGuard<base::Mutex> guard(&lock_); in CallOnForegroundThread() local
152 base::LockGuard<base::Mutex> guard(&lock_); in CallDelayedOnForegroundThread() local
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
DHalAdaptation.cpp250 SyncEventGuard guard (gOpenCompletedEvent); in HaiOpen() local
268 SyncEventGuard guard (gOpenCompletedEvent); in BroadcomHalCallback() local
276 SyncEventGuard guard (gPostInitCompletedEvent); in BroadcomHalCallback() local
284 SyncEventGuard guard (gCloseCompletedEvent); in BroadcomHalCallback() local
293 SyncEventGuard guard (gOpenCompletedEvent); in BroadcomHalCallback() local
297 SyncEventGuard guard (gPostInitCompletedEvent); in BroadcomHalCallback() local
301 SyncEventGuard guard (gCloseCompletedEvent); in BroadcomHalCallback() local
324 SyncEventGuard guard (gCloseCompletedEvent); in HaiClose() local
338 SyncEventGuard guard (gPostInitCompletedEvent); in HaiCoreInitialized() local
/external/v8/src/
Dlocked-queue-inl.h49 base::LockGuard<base::Mutex> guard(&tail_mutex_);
60 base::LockGuard<base::Mutex> guard(&head_mutex_);
74 base::LockGuard<base::Mutex> guard(&head_mutex_);
81 base::LockGuard<base::Mutex> guard(&head_mutex_);
Dcancelable-task.cc39 base::LockGuard<base::Mutex> guard(&mutex_); in Register() local
54 base::LockGuard<base::Mutex> guard(&mutex_); in RemoveFinishedTask() local
63 base::LockGuard<base::Mutex> guard(&mutex_); in TryAbort() local
86 base::LockGuard<base::Mutex> guard(&mutex_); in CancelAndWait() local
/external/v8/test/mjsunit/
Dtry.js60 function guard(f) { try { f(); } catch (o) { return o; } } function
61 assertEquals('baz', guard(function() { throw 'baz'; }));
63 assertEquals(1, guard(function() { try { throw 1; } finally { } }));
64 assertEquals(2, guard(function() { try { throw 2; } finally { var x = 12; } }));
65 assertEquals(4, guard(function() { try { throw 3; } finally { throw 4; } }));
/external/llvm/test/Transforms/IndVarSimplify/
D2011-11-01-lftrptr.ll19 %guard = icmp ult i8* null, %end
20 br i1 %guard, label %preheader, label %exit
45 %guard = icmp ult i8* %buf, %end
46 br i1 %guard, label %preheader, label %exit
74 %guard = icmp ult i32 0, %cnt
75 br i1 %guard, label %preheader, label %exit
105 %guard = icmp ult i32 %bi, %cnt
106 br i1 %guard, label %preheader, label %exit
/external/dbus-binding-generator/chromeos-dbus-bindings/
Dheader_generator.cc25 string guard = base::StringPrintf("____chromeos_dbus_binding__%s", in GenerateHeaderGuard() local
27 for (auto& c : guard) { in GenerateHeaderGuard()
34 return guard; in GenerateHeaderGuard()
/external/valgrind/memcheck/
Dmc_translate.c1211 static void complainIfUndefined ( MCEnv* mce, IRAtom* atom, IRExpr *guard ) in complainIfUndefined() argument
1228 if (guard) in complainIfUndefined()
1229 tl_assert(isOriginalAtom(mce, guard)); in complainIfUndefined()
1345 di->guard = cond; // and cond is PCast-to-1(atom#) in complainIfUndefined()
1349 if (guard) { in complainIfUndefined()
1350 IRAtom *g1 = assignNew('V', mce, Ity_I32, unop(Iop_1Uto32, di->guard)); in complainIfUndefined()
1351 IRAtom *g2 = assignNew('V', mce, Ity_I32, unop(Iop_1Uto32, guard)); in complainIfUndefined()
1353 di->guard = assignNew('V', mce, Ity_I1, unop(Iop_32to1, e)); in complainIfUndefined()
1368 if (guard == NULL) { in complainIfUndefined()
1381 IRExpr_ITE(guard, definedOfType(ty), in complainIfUndefined()
[all …]
/external/valgrind/memcheck/tests/
Ddescr_belowsp.stderr.exp17 In stack guard protected page, .... bytes below stack pointer
23 In stack guard protected page, .... bytes below stack pointer
26 In stack guard protected page, .... bytes below stack pointer
/external/conscrypt/src/platform/java/org/conscrypt/
DPlatform.java281 CloseGuard guard = (CloseGuard) guardObj; in closeGuardOpen() local
282 guard.open(message); in closeGuardOpen()
286 CloseGuard guard = (CloseGuard) guardObj; in closeGuardClose() local
287 guard.close(); in closeGuardClose()
291 CloseGuard guard = (CloseGuard) guardObj; in closeGuardWarnIfOpen() local
292 guard.warnIfOpen(); in closeGuardWarnIfOpen()
/external/libvorbis/vq/
Dlatticetune.c45 int entries=-1,dim=-1,guard=1; in main() local
58 if(argv[3]!=NULL)guard=0; in main()
86 for(j=0;j<entries;j++)hits[j]=guard; in main()

12345678