Home
last modified time | relevance | path

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

123456

/external/llvm-project/clang/test/Analysis/
Dgcdantipatternchecker_test.m32 dispatch_semaphore_t sema = dispatch_semaphore_create(0);
35 dispatch_semaphore_signal(sema);
37 dispatch_semaphore_wait(sema, 100); // expected-warning{{Waiting on a callback using a semaphore}}
43 dispatch_semaphore_t sema = dispatch_semaphore_create(0);
46 dispatch_semaphore_signal(sema);
48 dispatch_semaphore_wait(sema, 100);
81 dispatch_semaphore_t sema = dispatch_semaphore_create(0);
83 dispatch_semaphore_wait(sema, 100); // expected-warning{{Waiting on a callback}}
85 dispatch_semaphore_signal(sema);
90 dispatch_semaphore_t sema = dispatch_semaphore_create(0);
[all …]
/external/mesa3d/src/gallium/auxiliary/os/
Dos_thread.h78 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/
Dos_thread.h218 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/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/
Dllvm.amdgcn.ds.gws.sema.br.ll1 …s < %S/../llvm.amdgcn.ds.gws.sema.br.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP %S/…
2 …s < %S/../llvm.amdgcn.ds.gws.sema.br.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP %S/…
3 …s < %S/../llvm.amdgcn.ds.gws.sema.br.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP %S/…
4 … < %S/../llvm.amdgcn.ds.gws.sema.br.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOOP %S…
5 …%S/../llvm.amdgcn.ds.gws.sema.br.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOOP,GFX10…
Dllvm.amdgcn.ds.gws.sema.v.ll1 …s < %S/../llvm.amdgcn.ds.gws.sema.v.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP %S/.…
2 …s < %S/../llvm.amdgcn.ds.gws.sema.v.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP %S/.…
3 …< %S/../llvm.amdgcn.ds.gws.sema.v.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP,GFX8 %…
4 … < %S/../llvm.amdgcn.ds.gws.sema.v.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOOP %S/…
5 …%S/../llvm.amdgcn.ds.gws.sema.v.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOOP,GFX10 …
Dllvm.amdgcn.ds.gws.sema.release.all.ll1 … -mtriple=amdgcn-mesa-mesa3d -mcpu=tahiti -o - < %S/../llvm.amdgcn.ds.gws.sema.release.all.ll 2>&1…
2 …S/../llvm.amdgcn.ds.gws.sema.release.all.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP…
3 …../llvm.amdgcn.ds.gws.sema.release.all.ll | FileCheck -enable-var-scope -check-prefixes=GCN,LOOP,G…
4 …/../llvm.amdgcn.ds.gws.sema.release.all.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOO…
5 …/llvm.amdgcn.ds.gws.sema.release.all.ll | FileCheck -enable-var-scope -check-prefixes=GCN,NOLOOP,G…
7 …: cannot select: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.release.all), %{{[0…
Dregbankselect-amdgcn.ds.gws.sema.v.mir16 ; CHECK: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.v), [[COPY]](s32)
18 G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.v), %0
33 …; CHECK: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.v), [[V_READFIRSTLANE_B32_]…
35 G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.v), %0
/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/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp48 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes() argument
54 makeScopes(sema, parent, result); in makeScopes()
57 new Scope(result.back(), Scope::DeclScope, sema.getDiagnostics()); in makeScopes()
61 result.push_back(sema.TUScope); in makeScopes()
66 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt() argument
67 IdentifierInfo &ident = sema.getASTContext().Idents.get(name); in emulateLookupInCtxt()
70 lookup_result = std::make_unique<LookupResult>(sema, DeclarationName(&ident), in emulateLookupInCtxt()
78 makeScopes(sema, ctxt, scopes); in emulateLookupInCtxt()
81 sema.LookupName(*lookup_result, scopes.back()); in emulateLookupInCtxt()
119 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext() argument
[all …]
/external/python/cpython2/Lib/test/
Dtest_dummy_threading.py12 global sema
20 sema.acquire()
34 sema.release()
38 global sema
39 sema = _threading.BoundedSemaphore(value=3)
/external/python/cpython2/Python/
Dthread_atheos.h158 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/igt-gpu-tools/overlay/
Dgpu-top.c135 s->sema[n] = sample[m++]; in gpu_top_update()
147 gt->ring[n].u.u.sema = (100 * (s->sema[n] - d->sema[n]) + d_time/2) / d_time; in gpu_top_update()
154 if (gt->ring[n].u.u.sema > 100) in gpu_top_update()
155 gt->ring[n].u.u.sema = 100; in gpu_top_update()
Dgpu-top.h46 uint8_t sema; member
56 uint64_t sema[MAX_RINGS]; member
/external/skqp/src/gpu/gl/
DGrGLSemaphore.h26 auto sema = sk_sp<GrGLSemaphore>(new GrGLSemaphore(gpu, in MakeWrapped() local
28 sema->setSync(sync); in MakeWrapped()
29 return sema; in MakeWrapped()
/external/llvm-project/clang/include/clang/Basic/
DCMakeLists.txt45 clang_tablegen(arm_neon.inc -gen-arm-neon-sema
48 clang_tablegen(arm_fp16.inc -gen-arm-neon-sema
57 clang_tablegen(arm_mve_builtin_sema.inc -gen-arm-mve-builtin-sema
72 clang_tablegen(arm_sve_sema_rangechecks.inc -gen-arm-sve-sema-rangechecks
81 clang_tablegen(arm_cde_builtin_sema.inc -gen-arm-cde-builtin-sema
/external/skia/src/gpu/gl/
DGrGLSemaphore.h26 auto sema = std::unique_ptr<GrGLSemaphore>( in MakeWrapped() local
28 sema->setSync(sync); in MakeWrapped()
29 return sema; in MakeWrapped()
/external/llvm-project/clang/examples/PrintFunctionNames/
DPrintFunctionNames.cpp69 clang::Sema &sema = Instance.getSema(); in HandleTranslationUnit() local
72 *sema.LateParsedTemplateMap.find(FD)->second; in HandleTranslationUnit()
73 sema.LateTemplateParser(sema.OpaqueParser, LPT); in HandleTranslationUnit()
/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/llvm-project/llvm/utils/gn/secondary/clang/include/clang/Basic/
DBUILD.gn95 args = [ "-gen-arm-neon-sema" ]
99 args = [ "-gen-arm-neon-sema" ]
113 args = [ "-gen-arm-mve-builtin-sema" ]
138 args = [ "-gen-arm-sve-sema-rangechecks" ]
153 args = [ "-gen-arm-cde-builtin-sema" ]
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.ds.gws.sema.release.all.ll9 ; GFX6ERR-SDAG: LLVM ERROR: Cannot select: intrinsic %llvm.amdgcn.ds.gws.sema.release.all
10 …: cannot select: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.amdgcn.ds.gws.sema.release.all), %{{[0…
25 call void @llvm.amdgcn.ds.gws.sema.release.all(i32 0)
29 declare void @llvm.amdgcn.ds.gws.sema.release.all(i32) #0
/external/python/cpython2/Doc/includes/
Dmp_synchronize.py110 def semaphore_func(sema, mutex, running): argument
111 sema.acquire()
126 sema.release()
129 sema = multiprocessing.Semaphore(3)
135 args=(sema, mutex, running))
/external/llvm-project/clang/include/clang/Sema/
DSemaLambda.h21 namespace sema {
34 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
/external/llvm-project/clang/include/clang/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/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/llvm-project/clang/lib/Sema/
DCoroutineStmtBuilder.h27 sema::FunctionScopeInfo &Fn;
37 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn,

123456