Searched refs:sema (Results 1 - 25 of 62) sorted by relevance

123

/external/valgrind/coregrind/m_scheduler/
H A Dsema.c3 /*--- Semaphore stuff. sema.c ---*/
44 Slower (than the removed futex-based sema scheme) but more portable
55 void ML_(sema_init)(vg_sema_t *sema) argument
59 r = VG_(pipe)(sema->pipe);
62 vg_assert(sema->pipe[0] != sema->pipe[1]);
64 sema->pipe[0] = VG_(safe_fd)(sema->pipe[0]);
65 sema->pipe[1] = VG_(safe_fd)(sema
86 sema_deinit(vg_sema_t *sema) argument
98 sema_down( vg_sema_t *sema, Bool as_LL ) argument
130 sema_up( vg_sema_t *sema, Bool as_LL ) argument
[all...]
H A 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 );
H A Dsched-lock-generic.c41 vg_sema_t sema; member in struct:sched_lock
54 ML_(sema_init)(&p->sema);
60 ML_(sema_deinit)(&p->sema);
66 return p->sema.owner_lwpid;
71 ML_(sema_down)(&p->sema, False);
76 ML_(sema_up)(&p->sema, False);
/external/clang/include/clang/Sema/
H A DSemaLambda.h31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
H A DAnalysisBasedWarnings.h27 namespace sema { namespace in namespace:clang
31 namespace sema { namespace in namespace:clang
101 }} // end namespace clang::sema
H A DDelayedDiagnostic.h28 namespace sema { namespace in namespace:clang
297 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) {
H A DTemplateDeduction.h26 namespace sema { namespace in namespace:clang
186 } // end namespace sema
/external/python/cpython2/Lib/test/
H A Dtest_dummy_threading.py12 global sema
20 sema.acquire()
34 sema.release()
38 global sema
39 sema = _threading.BoundedSemaphore(value=3)
H A Dtest_threading.py36 def __init__(self, name, testcase, sema, mutex, nrunning):
39 self.sema = sema
49 with self.sema:
86 sema = threading.BoundedSemaphore(value=3)
93 t = TestThread("<thread %d>"%i, self, sema, mutex, numrunning)
/external/python/cpython3/Lib/test/
H A Dtest_dummy_threading.py12 global sema
20 sema.acquire()
34 sema.release()
38 global sema
39 sema = _threading.BoundedSemaphore(value=3)
H A Dtest_threading.py44 def __init__(self, name, testcase, sema, mutex, nrunning):
47 self.sema = sema
57 with self.sema:
95 sema = threading.BoundedSemaphore(value=3)
102 t = TestThread("<thread %d>"%i, self, sema, mutex, numrunning)
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h256 pipe_semaphore_init(pipe_semaphore *sema, int init_val) argument
258 pipe_mutex_init(sema->mutex);
259 pipe_condvar_init(sema->cond);
260 sema->counter = init_val;
264 pipe_semaphore_destroy(pipe_semaphore *sema) argument
266 pipe_mutex_destroy(sema->mutex);
267 pipe_condvar_destroy(sema->cond);
272 pipe_semaphore_signal(pipe_semaphore *sema) argument
274 pipe_mutex_lock(sema->mutex);
275 sema
282 pipe_semaphore_wait(pipe_semaphore *sema) argument
[all...]
/external/skia/src/gpu/gl/
H A DGrGLSemaphore.h26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, local
28 sema->setSync(sync);
29 return sema;
/external/skqp/src/gpu/gl/
H A DGrGLSemaphore.h26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, local
28 sema->setSync(sync);
29 return sema;
/external/python/cpython2/Python/
H A Dthread_atheos.h158 sem_id sema;
185 sema = create_semaphore(name, 1, 0);
186 if (sema < 0) {
189 sema = 0;
191 dprintf(("PyThread_allocate_lock()-> %p\n", sema));
192 return (PyThread_type_lock) sema;
/external/clang/examples/PrintFunctionNames/
H A DPrintFunctionNames.cpp70 clang::Sema &sema = Instance.getSema(); variable
72 clang::LateParsedTemplate* LPT = sema.LateParsedTemplateMap.lookup(FD);
73 sema.LateTemplateParser(sema.OpaqueParser, *LPT);
/external/valgrind/drd/tests/
H A Dpth_broadcast.c143 struct csema sema; local
147 csema_ctr(&sema);
153 p->m_sema = &sema;
161 csema_p(&sema, thread_count);
176 csema_dtr(&sema);
/external/python/cpython2/Doc/includes/
H A Dmp_synchronize.py110 def semaphore_func(sema, mutex, running):
111 sema.acquire()
126 sema.release()
129 sema = multiprocessing.Semaphore(3)
135 args=(sema, mutex, running))
/external/valgrind/drd/
H A 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) argument
273 DRD_IGNORE_VAR(*sema);
274 pthread_mutex_init(&sema->mutex, NULL);
275 DRD_(ignore_mutex_ordering)(&sema->mutex);
276 pthread_cond_init(&sema->cond, NULL);
277 sema
280 sema_destroy(DrdSema* sema) argument
286 sema_down(DrdSema* sema) argument
295 sema_up(DrdSema* sema) argument
[all...]
/external/clang/lib/Parse/
H A DRAIIObjectsForParser.h46 sema::DelayedDiagnosticPool DiagnosticPool;
92 sema::DelayedDiagnosticPool DiagnosticPool;
108 const sema::DelayedDiagnosticPool *parentPool)
130 sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() {
133 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
186 const sema::DelayedDiagnosticPool &getDelayedDiagnosticPool() const {
/external/clang/lib/Sema/
H A DDelayedDiagnostic.cpp20 using namespace sema;
H A DSemaLambda.cpp25 using namespace sema;
64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes,
70 isa<clang::sema::LambdaScopeInfo>(
72 "The function on the top of sema's function-info stack must be a lambda");
81 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator;
84 const clang::sema::LambdaScopeInfo *LSI =
85 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]);
113 if (LSI->ImpCaptureStyle == sema::LambdaScopeInfo::ImpCap_None) {
171 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
188 const sema
[all...]
/external/clang/lib/ARCMigrate/
H A DInternals.h157 Sema &sema, TransformActions &TA,
161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags),
156 MigrationPass(ASTContext &Ctx, LangOptions::GCMode OrigGCMode, Sema &sema, TransformActions &TA, const CapturedDiagList &capturedDiags, std::vector<SourceLocation> &ARCMTMacroLocs) argument
/external/v8/tools/clang/blink_gc_plugin/
H A DBlinkGCPluginConsumer.cpp135 clang::Sema& sema = instance_.getSema(); local
149 clang::LateParsedTemplate* lpt = sema.LateParsedTemplateMap[fd].get();
150 sema.LateTemplateParser(sema.OpaqueParser, *lpt);
H A DRecordInfo.cpp568 static bool isInStdNamespace(clang::Sema& sema, NamespaceDecl* ns) argument
571 if (sema.getStdNamespace()->InEnclosingNamespaceSetOf(ns))
644 clang::Sema& sema = cache_->instance().getSema(); local
645 if (!isInStdNamespace(sema, ns))

Completed in 2711 milliseconds

123