Home
last modified time | relevance | path

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

123

/external/valgrind/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
54 ML_(sema_init)(&p->sema); in create_sched_lock()
60 ML_(sema_deinit)(&p->sema); in destroy_sched_lock()
66 return p->sema.owner_lwpid; in get_sched_lock_owner()
71 ML_(sema_down)(&p->sema, False); in acquire_sched_lock()
76 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/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/autotest/client/tests/dbench/
Ddbench_startup.patch25 + sem_t *sema;
33 + shmid = shmget(IPC_PRIVATE, sizeof(*sema), IPC_CREAT | 0666);
38 + sema = shmat(shmid, NULL, 0);
40 + if (sem_init(sema, 1, 0) < 0) {
51 + sem_wait(sema);
59 + shmdt(sema);
67 + sem_post(sema);
75 + shmdt(sema);
83 + shmdt(sema);
/external/valgrind/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/valgrind/drd/
Ddrd_pthread_intercepts.c232 static void DRD_(sema_init)(DrdSema* sema);
233 static void DRD_(sema_destroy)(DrdSema* sema);
234 static void DRD_(sema_down)(DrdSema* sema);
235 static void DRD_(sema_up)(DrdSema* sema);
271 static void DRD_(sema_init)(DrdSema* sema) in DRD_()
273 DRD_IGNORE_VAR(*sema); in DRD_()
274 pthread_mutex_init(&sema->mutex, NULL); in DRD_()
275 DRD_(ignore_mutex_ordering)(&sema->mutex); in DRD_()
276 pthread_cond_init(&sema->cond, NULL); in DRD_()
277 sema->counter = 0; in DRD_()
[all …]
/external/clang/examples/PrintFunctionNames/
DPrintFunctionNames.cpp70 clang::Sema &sema = Instance.getSema(); in HandleTranslationUnit() local
72 clang::LateParsedTemplate* LPT = sema.LateParsedTemplateMap.lookup(FD); in HandleTranslationUnit()
73 sema.LateTemplateParser(sema.OpaqueParser, *LPT); in HandleTranslationUnit()
/external/clang/lib/Parse/
DRAIIObjectsForParser.h46 sema::DelayedDiagnosticPool DiagnosticPool;
92 sema::DelayedDiagnosticPool DiagnosticPool;
108 const sema::DelayedDiagnosticPool *parentPool) in ParsingDeclRAIIObject()
130 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() { in getDelayedDiagnosticPool()
133 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const { in getDelayedDiagnosticPool()
186 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 {
297 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) { in add()
DSema.h190 namespace sema {
434 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes;
541 sema::DelayedDiagnosticPool *SavedPool;
552 sema::DelayedDiagnosticPool *CurPool;
558 void add(const sema::DelayedDiagnostic &diag); // in DelayedDiagnostic.h
564 sema::DelayedDiagnosticPool *getCurrentPool() const { in getCurrentPool()
570 DelayedDiagnosticsState push(sema::DelayedDiagnosticPool &pool) { in push()
1152 sema::LambdaScopeInfo *PushLambdaScope();
1163 PopFunctionScopeInfo(const sema::AnalysisBasedWarnings::Policy *WP = nullptr,
1167 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/
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()
DAnalysisBasedWarnings.cpp1184 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak()
1187 typedef sema::FunctionScopeInfo::WeakObjectProfileTy WeakObjectProfileTy; in diagnoseRepeatedUseOfWeak()
1188 typedef sema::FunctionScopeInfo::WeakObjectUseMap WeakObjectUseMap; in diagnoseRepeatedUseOfWeak()
1189 typedef sema::FunctionScopeInfo::WeakUseVector WeakUseVector; in diagnoseRepeatedUseOfWeak()
1269 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1271 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak()
1807 clang::sema::AnalysisBasedWarnings::Policy::Policy() { in Policy()
1818 clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s) in AnalysisBasedWarnings()
1846 static void flushDiagnostics(Sema &S, const sema::FunctionScopeInfo *fscope) { in flushDiagnostics()
1851 void clang::sema::
[all …]
DDelayedDiagnostic.cpp20 using namespace sema;
DSemaTemplateVariadic.cpp209 if (isa<sema::LambdaScopeInfo>(SI)) in isUnexpandedParameterPackPermitted()
228 if (sema::LambdaScopeInfo *LSI = in DiagnoseUnexpandedParameterPacks()
229 dyn_cast<sema::LambdaScopeInfo>(FunctionScopes[N-1])) { in DiagnoseUnexpandedParameterPacks()
DScopeInfo.cpp24 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/docs/internals/
DDarwin-notes.txt35 coregrind/m_scheduler/sema.c, none/tests/pth_cancel1 would hang
76 * Cleanups: m_scheduler/sema.c: use pipe implementation
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-solaris.c6507 vki_lwp_sema_t *sema = (vki_lwp_sema_t*)ARG1; local
6510 PRE_REG_READ1(long, "lwp_sema_post", lwp_sema_t *, sema);
6512 PRE_FIELD_READ("lwp_sema_post(sema->type)", sema->vki_sema_type);
6513 PRE_FIELD_READ("lwp_sema_post(sema->count)", sema->vki_sema_count);
6515 PRE_FIELD_READ("lwp_sema_post(sema->waiters)", sema->vki_sema_waiters);
6521 vki_lwp_sema_t *sema = (vki_lwp_sema_t*)ARG1; local
6522 POST_FIELD_WRITE(sema->vki_sema_count);
6523 POST_FIELD_WRITE(sema->vki_sema_waiters);
6529 vki_lwp_sema_t *sema = (vki_lwp_sema_t*)ARG1; local
6531 PRE_REG_READ1(long, "lwp_sema_trywait", lwp_sema_t *, sema);
[all …]

123