Home
last modified time | relevance | path

Searched refs:sema (Results 1 – 25 of 58) sorted by relevance

123

/external/valgrind/main/coregrind/m_scheduler/
Dsema.c55 void ML_(sema_init)(vg_sema_t *sema) in ML_()
59 r = VG_(pipe)(sema->pipe); in ML_()
62 vg_assert(sema->pipe[0] != sema->pipe[1]); in ML_()
64 sema->pipe[0] = VG_(safe_fd)(sema->pipe[0]); in ML_()
65 sema->pipe[1] = VG_(safe_fd)(sema->pipe[1]); in ML_()
68 VG_(debugLog)(0,"zz","sema_init: %d %d\n", sema->pipe[0], in ML_()
69 sema->pipe[1]); in ML_()
70 vg_assert(sema->pipe[0] != sema->pipe[1]); in ML_()
72 sema->owner_lwpid = -1; in ML_()
79 INNER_REQUEST(ANNOTATE_RWLOCK_CREATE(sema)); in ML_()
[all …]
Dsched-lock-generic.c41 vg_sema_t sema; member
55 ML_(sema_init)(&p->sema); in create_sched_lock()
61 ML_(sema_deinit)(&p->sema); in destroy_sched_lock()
67 return p->sema.owner_lwpid; in get_sched_lock_owner()
72 ML_(sema_down)(&p->sema, False); in acquire_sched_lock()
77 ML_(sema_up)(&p->sema, False); in release_sched_lock()
Dpriv_sema.h45 void ML_(sema_init) ( vg_sema_t *sema );
46 void ML_(sema_deinit) ( vg_sema_t *sema );
47 void ML_(sema_down) ( vg_sema_t *sema, Bool as_LL );
48 void ML_(sema_up) ( vg_sema_t *sema, Bool as_LL );
/external/qemu/distrib/sdl-1.2.15/src/thread/symbian/
DSDL_syssem.cpp84 RSemaphore sema; in SDL_DestroySemaphore() local
85 sema.SetHandle(sem->handle); in SDL_DestroySemaphore()
87 sema.Signal(); in SDL_DestroySemaphore()
88 sema.Close(); in SDL_DestroySemaphore()
111 RSemaphore sema; in ThreadRun() local
112 sema.SetHandle(info->iHandle); in ThreadRun()
113 sema.Signal(); in ThreadRun()
125 RSemaphore sema; in _WaitAll() local
126 sema.SetHandle(sem->handle); in _WaitAll()
127 sema.Wait(); in _WaitAll()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
Dos_thread.h403 pipe_semaphore_init(pipe_semaphore *sema, int init_val) in pipe_semaphore_init() argument
405 pipe_mutex_init(sema->mutex); in pipe_semaphore_init()
406 pipe_condvar_init(sema->cond); in pipe_semaphore_init()
407 sema->counter = init_val; in pipe_semaphore_init()
411 pipe_semaphore_destroy(pipe_semaphore *sema) in pipe_semaphore_destroy() argument
413 pipe_mutex_destroy(sema->mutex); in pipe_semaphore_destroy()
414 pipe_condvar_destroy(sema->cond); in pipe_semaphore_destroy()
419 pipe_semaphore_signal(pipe_semaphore *sema) in pipe_semaphore_signal() argument
421 pipe_mutex_lock(sema->mutex); in pipe_semaphore_signal()
422 sema->counter++; in pipe_semaphore_signal()
[all …]
/external/mesa3d/src/gallium/auxiliary/os/
Dos_thread.h403 pipe_semaphore_init(pipe_semaphore *sema, int init_val) in pipe_semaphore_init() argument
405 pipe_mutex_init(sema->mutex); in pipe_semaphore_init()
406 pipe_condvar_init(sema->cond); in pipe_semaphore_init()
407 sema->counter = init_val; in pipe_semaphore_init()
411 pipe_semaphore_destroy(pipe_semaphore *sema) in pipe_semaphore_destroy() argument
413 pipe_mutex_destroy(sema->mutex); in pipe_semaphore_destroy()
414 pipe_condvar_destroy(sema->cond); in pipe_semaphore_destroy()
419 pipe_semaphore_signal(pipe_semaphore *sema) in pipe_semaphore_signal() argument
421 pipe_mutex_lock(sema->mutex); in pipe_semaphore_signal()
422 sema->counter++; in pipe_semaphore_signal()
[all …]
/external/qemu/util/
Dqemu-thread-win32.c76 cond->sema = CreateSemaphore(NULL, 0, LONG_MAX, NULL); in qemu_cond_init()
77 if (!cond->sema) { in qemu_cond_init()
97 result = CloseHandle(cond->sema); in qemu_cond_destroy()
101 cond->sema = 0; in qemu_cond_destroy()
124 result = SignalObjectAndWait(cond->sema, cond->continue_event, in qemu_cond_signal()
143 result = ReleaseSemaphore(cond->sema, cond->waiters, NULL); in qemu_cond_broadcast()
173 WaitForSingleObject(cond->sema, INFINITE); in qemu_cond_wait()
198 sem->sema = CreateSemaphore(NULL, init, LONG_MAX, NULL); in qemu_sem_init()
203 CloseHandle(sem->sema); in qemu_sem_destroy()
208 ReleaseSemaphore(sem->sema, 1, NULL); in qemu_sem_post()
[all …]
/external/valgrind/main/drd/
Ddrd_pthread_intercepts.c158 static void DRD_(sema_init)(DrdSema* sema);
159 static void DRD_(sema_destroy)(DrdSema* sema);
160 static void DRD_(sema_down)(DrdSema* sema);
161 static void DRD_(sema_up)(DrdSema* sema);
182 static void DRD_(sema_init)(DrdSema* sema) in DRD_()
184 DRD_IGNORE_VAR(sema->counter); in DRD_()
185 pthread_mutex_init(&sema->mutex, NULL); in DRD_()
186 sema->counter = 0; in DRD_()
187 sema->waiters = 0; in DRD_()
190 static void DRD_(sema_destroy)(DrdSema* sema) in DRD_()
[all …]
/external/valgrind/main/drd/tests/
Dpth_broadcast.c143 struct csema sema; in main() local
147 csema_ctr(&sema); in main()
153 p->m_sema = &sema; in main()
161 csema_p(&sema, thread_count); in main()
176 csema_dtr(&sema); in main()
/external/qemu/include/qemu/
Dthread-win32.h12 HANDLE sema; member
17 HANDLE sema; member
/external/clang/lib/Parse/
DRAIIObjectsForParser.h46 sema::DelayedDiagnosticPool DiagnosticPool;
86 sema::DelayedDiagnosticPool DiagnosticPool;
102 const sema::DelayedDiagnosticPool *parentPool) in ParsingDeclRAIIObject()
124 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() { in getDelayedDiagnosticPool()
127 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { in getDelayedDiagnosticPool()
180 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { in getDelayedDiagnosticPool()
/external/clang/include/clang/Sema/
DAnalysisBasedWarnings.h27 namespace sema {
31 namespace sema {
DSemaLambda.h31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
DDelayedDiagnostic.h28 namespace sema {
286 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) { in add()
DSema.h188 namespace sema {
370 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes;
487 sema::DelayedDiagnosticPool *SavedPool;
498 sema::DelayedDiagnosticPool *CurPool;
504 void add(const sema::DelayedDiagnostic &diag); // in DelayedDiagnostic.h
510 sema::DelayedDiagnosticPool *getCurrentPool() const { in getCurrentPool()
516 DelayedDiagnosticsState push(sema::DelayedDiagnosticPool &pool) { in push()
1044 sema::LambdaScopeInfo *PushLambdaScope();
1055 PopFunctionScopeInfo(const sema::AnalysisBasedWarnings::Policy *WP = nullptr,
1059 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction()
[all …]
DTemplateDeduction.h26 namespace sema {
/external/clang/lib/ARCMigrate/
DInternals.h157 Sema &sema, TransformActions &TA, in MigrationPass() argument
161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags), in MigrationPass()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1180 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak()
1183 typedef sema::FunctionScopeInfo::WeakObjectProfileTy WeakObjectProfileTy; in diagnoseRepeatedUseOfWeak()
1184 typedef sema::FunctionScopeInfo::WeakObjectUseMap WeakObjectUseMap; in diagnoseRepeatedUseOfWeak()
1185 typedef sema::FunctionScopeInfo::WeakUseVector WeakUseVector; in diagnoseRepeatedUseOfWeak()
1265 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1267 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1711 clang::sema::AnalysisBasedWarnings::Policy::Policy() { in Policy()
1722 clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s) in AnalysisBasedWarnings()
1750 static void flushDiagnostics(Sema &S, const sema::FunctionScopeInfo *fscope) { in flushDiagnostics()
1755 void clang::sema::
[all …]
DSemaLambda.cpp25 using namespace sema;
64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda()
70 isa<clang::sema::LambdaScopeInfo>( in getStackIndexOfNearestEnclosingCaptureReadyLambda()
81 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
84 const clang::sema::LambdaScopeInfo *LSI = in getStackIndexOfNearestEnclosingCaptureReadyLambda()
85 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
113 if (LSI->ImpCaptureStyle == sema::LambdaScopeInfo::ImpCap_None) { in getStackIndexOfNearestEnclosingCaptureReadyLambda()
171 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
188 const sema::LambdaScopeInfo *const CaptureReadyLambdaLSI = in getStackIndexOfNearestEnclosingCaptureCapableLambda()
189 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]); in getStackIndexOfNearestEnclosingCaptureCapableLambda()
DDelayedDiagnostic.cpp20 using namespace sema;
DScopeInfo.cpp23 using namespace sema;
DSemaStmtAttr.cpp24 using namespace sema;
/external/clang/include/clang/Basic/
DCMakeLists.txt38 clang_tablegen(arm_neon.inc -gen-arm-neon-sema
DMakefile60 $(Verb) $(ClangTableGen) -gen-arm-neon-sema -o $(call SYSPATH, $@) \
/external/valgrind/main/docs/internals/
DDarwin-notes.txt35 coregrind/m_scheduler/sema.c, none/tests/pth_cancel1 would hang
83 * Cleanups: m_scheduler/sema.c: use pipe implementation

123