/external/mesa3d/src/gallium/auxiliary/os/ |
D | os_thread.h | 78 pipe_semaphore_init(pipe_semaphore *sema, int init_val) in pipe_semaphore_init() argument 80 (void) mtx_init(&sema->mutex, mtx_plain); in pipe_semaphore_init() 81 cnd_init(&sema->cond); in pipe_semaphore_init() 82 sema->counter = init_val; in pipe_semaphore_init() 86 pipe_semaphore_destroy(pipe_semaphore *sema) in pipe_semaphore_destroy() argument 88 mtx_destroy(&sema->mutex); in pipe_semaphore_destroy() 89 cnd_destroy(&sema->cond); in pipe_semaphore_destroy() 94 pipe_semaphore_signal(pipe_semaphore *sema) in pipe_semaphore_signal() argument 96 mtx_lock(&sema->mutex); in pipe_semaphore_signal() 97 sema->counter++; in pipe_semaphore_signal() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/os/ |
D | os_thread.h | 218 pipe_semaphore_init(pipe_semaphore *sema, int init_val) in pipe_semaphore_init() argument 220 pipe_mutex_init(sema->mutex); in pipe_semaphore_init() 221 pipe_condvar_init(sema->cond); in pipe_semaphore_init() 222 sema->counter = init_val; in pipe_semaphore_init() 226 pipe_semaphore_destroy(pipe_semaphore *sema) in pipe_semaphore_destroy() argument 228 pipe_mutex_destroy(sema->mutex); in pipe_semaphore_destroy() 229 pipe_condvar_destroy(sema->cond); in pipe_semaphore_destroy() 234 pipe_semaphore_signal(pipe_semaphore *sema) in pipe_semaphore_signal() argument 236 pipe_mutex_lock(sema->mutex); in pipe_semaphore_signal() 237 sema->counter++; in pipe_semaphore_signal() [all …]
|
/external/autotest/client/tests/dbench/ |
D | dbench_startup.patch | 25 + 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/python/cpython2/Lib/test/ |
D | test_dummy_threading.py | 12 global sema 20 sema.acquire() 34 sema.release() 38 global sema 39 sema = _threading.BoundedSemaphore(value=3)
|
D | test_threading.py | 36 def __init__(self, name, testcase, sema, mutex, nrunning): argument 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/ |
D | test_dummy_threading.py | 12 global sema 20 sema.acquire() 34 sema.release() 38 global sema 39 sema = _threading.BoundedSemaphore(value=3)
|
D | test_threading.py | 43 def __init__(self, name, testcase, sema, mutex, nrunning): argument 46 self.sema = sema 56 with self.sema: 94 sema = threading.BoundedSemaphore(value=3) 101 t = TestThread("<thread %d>"%i, self, sema, mutex, numrunning)
|
/external/python/cpython2/Python/ |
D | thread_atheos.h | 158 sem_id sema; in PyThread_allocate_lock() 185 sema = create_semaphore(name, 1, 0); in PyThread_allocate_lock() 186 if (sema < 0) { in PyThread_allocate_lock() 189 sema = 0; in PyThread_allocate_lock() 191 dprintf(("PyThread_allocate_lock()-> %p\n", sema)); in PyThread_allocate_lock() 192 return (PyThread_type_lock) sema; in PyThread_allocate_lock()
|
/external/skqp/src/gpu/gl/ |
D | GrGLSemaphore.h | 26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, in MakeWrapped() local 28 sema->setSync(sync); in MakeWrapped() 29 return sema; in MakeWrapped()
|
/external/skia/src/gpu/gl/ |
D | GrGLSemaphore.h | 26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, in MakeWrapped() local 28 sema->setSync(sync); in MakeWrapped() 29 return sema; in MakeWrapped()
|
/external/clang/examples/PrintFunctionNames/ |
D | PrintFunctionNames.cpp | 70 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/python/cpython2/Doc/includes/ |
D | mp_synchronize.py | 110 def semaphore_func(sema, mutex, running): argument 111 sema.acquire() 126 sema.release() 129 sema = multiprocessing.Semaphore(3) 135 args=(sema, mutex, running))
|
/external/clang/lib/Parse/ |
D | RAIIObjectsForParser.h | 46 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/ |
D | AnalysisBasedWarnings.h | 27 namespace sema { 31 namespace sema {
|
D | SemaLambda.h | 31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
|
D | DelayedDiagnostic.h | 28 namespace sema { 297 inline void Sema::DelayedDiagnostics::add(const sema::DelayedDiagnostic &diag) { in add()
|
D | Sema.h | 193 namespace sema { 466 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; 573 sema::DelayedDiagnosticPool *SavedPool; 584 sema::DelayedDiagnosticPool *CurPool; 590 void add(const sema::DelayedDiagnostic &diag); // in DelayedDiagnostic.h 596 sema::DelayedDiagnosticPool *getCurrentPool() const { in getCurrentPool() 602 DelayedDiagnosticsState push(sema::DelayedDiagnosticPool &pool) { in push() 1172 sema::LambdaScopeInfo *PushLambdaScope(); 1183 PopFunctionScopeInfo(const sema::AnalysisBasedWarnings::Policy *WP = nullptr, 1187 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() [all …]
|
/external/bcc/tools/ |
D | tplist_example.txt | 23 basic_usdt:loop_iter [sema 0x601036] 97 libc:memory_malloc_retry [sema 0x0] 104 libc:memory_realloc_retry [sema 0x0] 111 libc:memory_calloc_retry [sema 0x0]
|
/external/clang/lib/Sema/ |
D | SemaLambda.cpp | 25 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()
|
D | AnalysisBasedWarnings.cpp | 1204 const sema::FunctionScopeInfo *CurFn, in diagnoseRepeatedUseOfWeak() 1207 typedef sema::FunctionScopeInfo::WeakObjectProfileTy WeakObjectProfileTy; in diagnoseRepeatedUseOfWeak() 1208 typedef sema::FunctionScopeInfo::WeakObjectUseMap WeakObjectUseMap; in diagnoseRepeatedUseOfWeak() 1209 typedef sema::FunctionScopeInfo::WeakUseVector WeakUseVector; in diagnoseRepeatedUseOfWeak() 1289 if (isa<sema::BlockScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak() 1291 else if (isa<sema::LambdaScopeInfo>(CurFn)) in diagnoseRepeatedUseOfWeak() 1833 clang::sema::AnalysisBasedWarnings::Policy::Policy() { in Policy() 1844 clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s) in AnalysisBasedWarnings() 1872 static void flushDiagnostics(Sema &S, const sema::FunctionScopeInfo *fscope) { in flushDiagnostics() 1877 void clang::sema:: [all …]
|
D | DelayedDiagnostic.cpp | 20 using namespace sema;
|
/external/clang/lib/ARCMigrate/ |
D | Internals.h | 157 Sema &sema, TransformActions &TA, in MigrationPass() argument 161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags), in MigrationPass()
|
/external/v8/tools/clang/blink_gc_plugin/ |
D | RecordInfo.cpp | 595 static bool isInStdNamespace(clang::Sema& sema, NamespaceDecl* ns) in isInStdNamespace() argument 598 if (sema.getStdNamespace()->InEnclosingNamespaceSetOf(ns)) in isInStdNamespace() 665 clang::Sema& sema = cache_->instance().getSema(); in CreateEdge() local 666 if (!isInStdNamespace(sema, ns)) in CreateEdge()
|
D | BlinkGCPluginConsumer.cpp | 135 clang::Sema& sema = instance_.getSema(); in ParseFunctionTemplates() local 149 clang::LateParsedTemplate* lpt = sema.LateParsedTemplateMap[fd].get(); in ParseFunctionTemplates() 150 sema.LateTemplateParser(sema.OpaqueParser, *lpt); in ParseFunctionTemplates()
|
/external/skia/src/gpu/ |
D | GrContext.cpp | 240 sk_sp<GrSemaphore> sema = fResourceProvider->wrapBackendSemaphore( in wait() local 243 fGpu->waitSemaphore(std::move(sema)); in wait()
|