/external/valgrind/coregrind/m_scheduler/ |
H A D | sema.c | 3 /*--- 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 D | priv_sema.h | 45 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 D | sched-lock-generic.c | 41 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 D | SemaLambda.h | 31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
|
H A D | AnalysisBasedWarnings.h | 27 namespace sema { namespace in namespace:clang 31 namespace sema { namespace in namespace:clang 101 }} // end namespace clang::sema
|
H A D | DelayedDiagnostic.h | 28 namespace sema { namespace in namespace:clang 297 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) {
|
H A D | TemplateDeduction.h | 26 namespace sema { namespace in namespace:clang 186 } // end namespace sema
|
/external/python/cpython2/Lib/test/ |
H A D | test_dummy_threading.py | 12 global sema 20 sema.acquire() 34 sema.release() 38 global sema 39 sema = _threading.BoundedSemaphore(value=3)
|
H A D | test_threading.py | 36 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 D | test_dummy_threading.py | 12 global sema 20 sema.acquire() 34 sema.release() 38 global sema 39 sema = _threading.BoundedSemaphore(value=3)
|
H A D | test_threading.py | 44 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 D | os_thread.h | 256 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 D | GrGLSemaphore.h | 26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, local 28 sema->setSync(sync); 29 return sema;
|
/external/skqp/src/gpu/gl/ |
H A D | GrGLSemaphore.h | 26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, local 28 sema->setSync(sync); 29 return sema;
|
/external/python/cpython2/Python/ |
H A D | thread_atheos.h | 158 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 D | PrintFunctionNames.cpp | 70 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 D | pth_broadcast.c | 143 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 D | mp_synchronize.py | 110 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 D | drd_pthread_intercepts.c | 232 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 D | RAIIObjectsForParser.h | 46 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 D | DelayedDiagnostic.cpp | 20 using namespace sema;
|
H A D | SemaLambda.cpp | 25 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 D | Internals.h | 157 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 D | BlinkGCPluginConsumer.cpp | 135 clang::Sema& sema = instance_.getSema(); local 149 clang::LateParsedTemplate* lpt = sema.LateParsedTemplateMap[fd].get(); 150 sema.LateTemplateParser(sema.OpaqueParser, *lpt);
|
H A D | RecordInfo.cpp | 568 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))
|