Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 37) sorted by relevance

12

/external/valgrind/main/drd/
Ddrd_semaphore.c98 const Addr semaphore) in drd_semaphore_initialize() argument
100 tl_assert(semaphore != 0); in drd_semaphore_initialize()
101 tl_assert(p->a1 == semaphore); in drd_semaphore_initialize()
144 drd_semaphore_get_or_allocate(const Addr semaphore) in drd_semaphore_get_or_allocate() argument
148 tl_assert(offsetof(DrdClientobj, semaphore) == 0); in drd_semaphore_get_or_allocate()
149 p = &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
152 tl_assert(offsetof(DrdClientobj, semaphore) == 0); in drd_semaphore_get_or_allocate()
153 p = &(DRD_(clientobj_add)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
154 drd_semaphore_initialize(p, semaphore); in drd_semaphore_get_or_allocate()
163 static struct semaphore_info* semaphore_get(const Addr semaphore) in semaphore_get() argument
[all …]
Ddrd_semaphore.h41 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore,
44 void DRD_(semaphore_destroy)(const Addr semaphore);
45 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore,
48 void DRD_(semaphore_close)(const Addr semaphore);
49 void DRD_(semaphore_pre_wait)(const Addr semaphore);
50 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore,
52 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore);
53 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore,
Ddrd_error.h143 Addr semaphore; member
Ddrd_clientobj.h151 struct semaphore_info semaphore; member
/external/kernel-headers/original/asm-arm/
Dsemaphore.h15 struct semaphore { struct
28 struct semaphore name = __SEMAPHORE_INIT(name,count) argument
33 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
40 static inline void init_MUTEX(struct semaphore *sem) in init_MUTEX()
45 static inline void init_MUTEX_LOCKED(struct semaphore *sem) in init_MUTEX_LOCKED()
58 extern void __down(struct semaphore * sem);
59 extern int __down_interruptible(struct semaphore * sem);
60 extern int __down_trylock(struct semaphore * sem);
61 extern void __up(struct semaphore * sem);
67 static inline void down(struct semaphore * sem) in down()
[all …]
/external/kernel-headers/original/asm-x86/
Dsemaphore_32.h44 struct semaphore { struct
59 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count) argument
63 static inline void sema_init (struct semaphore *sem, int val) in sema_init()
76 static inline void init_MUTEX (struct semaphore *sem) in init_MUTEX()
81 static inline void init_MUTEX_LOCKED (struct semaphore *sem) in init_MUTEX_LOCKED()
96 static inline void down(struct semaphore * sem) in down()
115 static inline int down_interruptible(struct semaphore * sem) in down_interruptible()
138 static inline int down_trylock(struct semaphore * sem) in down_trylock()
160 static inline void up(struct semaphore * sem) in up()
/external/jmdns/src/javax/jmdns/impl/
DDNSStatefulObject.java57 Semaphore semaphore = _semaphores.get(thread); in waitForEvent() local
58 if (semaphore == null) { in waitForEvent()
59 semaphore = new Semaphore(1, true); in waitForEvent()
60 semaphore.drainPermits(); in waitForEvent()
61 _semaphores.putIfAbsent(thread, semaphore); in waitForEvent()
63 semaphore = _semaphores.get(thread); in waitForEvent()
65 semaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS); in waitForEvent()
76 for (Semaphore semaphore : semaphores) { in signalEvent()
77 semaphore.release(); in signalEvent()
78 semaphores.remove(semaphore); in signalEvent()
/external/valgrind/main/drd/tests/
Dtc18_semabuse.stderr.exp2 Semaphore reinitialization: semaphore 0x........
5 semaphore 0x........ was first observed at:
9 Invalid semaphore: semaphore 0x........
12 semaphore 0x........ was first observed at:
Dsem_open_traced.vgtest2 vgopts: --check-stack-var=yes --read-var-info=yes --trace-semaphore=yes
/external/v8/test/cctest/
Dtest-circular-queue.cc125 i::Semaphore* semaphore = i::OS::CreateSemaphore(0); in TEST() local
133 ProducerThread producer1(&scq, kRecordsPerChunk, 1, semaphore); in TEST()
134 ProducerThread producer2(&scq, kRecordsPerChunk, 10, semaphore); in TEST()
135 ProducerThread producer3(&scq, kRecordsPerChunk, 20, semaphore); in TEST()
139 semaphore->Wait(); in TEST()
151 semaphore->Wait(); in TEST()
163 semaphore->Wait(); in TEST()
175 delete semaphore; in TEST()
Dtest-threads.cc146 i::Semaphore* semaphore) in ThreadIdValidationThread() argument
149 semaphore_(semaphore) { in ThreadIdValidationThread()
176 i::Semaphore* semaphore = i::OS::CreateSemaphore(0); in TEST() local
180 new ThreadIdValidationThread(prev, &refs, i, semaphore); in TEST()
187 semaphore->Wait(); in TEST()
Dtest-thread-termination.cc33 v8::internal::Semaphore* semaphore = NULL; variable
37 semaphore->Signal(); in Signal()
167 semaphore->Wait(); in Run()
180 semaphore = v8::internal::OS::CreateSemaphore(0); in TEST()
195 delete semaphore; in TEST()
196 semaphore = NULL; in TEST()
234 semaphore = v8::internal::OS::CreateSemaphore(0); in TEST()
246 semaphore->Wait(); in TEST()
259 delete semaphore; in TEST()
260 semaphore = NULL; in TEST()
/external/srec/portable/include/
Dptrd.h312 PtrdSemaphore **semaphore);
322 PORTABLE_API ESR_ReturnCode PtrdSemaphoreDestroy(PtrdSemaphore *semaphore);
333 PORTABLE_API ESR_ReturnCode PtrdSemaphoreAcquire(PtrdSemaphore *semaphore);
347 PORTABLE_API ESR_ReturnCode PtrdSemaphoreAcquireTimeout(PtrdSemaphore *semaphore,
359 PORTABLE_API ESR_ReturnCode PtrdSemaphoreRelease(PtrdSemaphore *semaphore);
/external/webkit/Source/WebKit/android/WebCoreSupport/
DWebCookieJar.cpp250 static scoped_refptr<FlushSemaphore> semaphore(new FlushSemaphore()); in flush() local
251 semaphore->SendFlushRequest(get(false)->cookieStore()->GetCookieMonster()); in flush()
252 semaphore->SendFlushRequest(get(true)->cookieStore()->GetCookieMonster()); in flush()
253 semaphore->Wait(2); in flush()
/external/webkit/Source/WebKit2/Platform/win/
DRunLoopWin.cpp82 …entMessagesUntil(const Vector<HWND>& windows, CoreIPC::BinarySemaphore& semaphore, double absolute… in dispatchSentMessagesUntil() argument
85 return semaphore.wait(absoluteTime); in dispatchSentMessagesUntil()
87 HANDLE handle = semaphore.event(); in dispatchSentMessagesUntil()
/external/v8/src/
Druntime-profiler.cc83 static LazySemaphore<0>::type semaphore = LAZY_SEMAPHORE_INITIALIZER; variable
424 semaphore.Pointer()->Signal(); in HandleWakeUp()
437 semaphore.Pointer()->Wait(); in WaitForSomeIsolateToEnterJS()
453 semaphore.Pointer()->Signal(); in StopRuntimeProfilerThreadBeforeShutdown()
/external/valgrind/unittest/
Dwine.supp18 # semaphore implementation.
/external/nist-sip/java/gov/nist/javax/sip/stack/
DSIPTransaction.java131 private Semaphore semaphore; field in SIPTransaction
332 this.semaphore = new Semaphore(1,true); in SIPTransaction()
1140 retval = this.semaphore.tryAcquire(1000, TimeUnit.MILLISECONDS); in acquireSem()
1181 this.semaphore.release(); in semRelease()
/external/e2fsprogs/lib/ext2fs/
Dkernel-jbd.h478 struct semaphore j_barrier;
511 struct semaphore j_checkpoint_sem;
514 struct semaphore j_sem;
/external/kernel-headers/original/linux/
Dkernelcapi.h65 struct semaphore recv_sem;
Ddevice.h147 struct semaphore sem; /* locks both the children and interfaces lists */
311 struct semaphore sem; /* semaphore to synchronize calls to
Dtty.h59 struct semaphore pty_sem;
179 struct semaphore termios_sem;
/external/oprofile/module/
Dcompat22.h113 #define DECLARE_MUTEX(foo) struct semaphore foo = MUTEX
/external/valgrind/main/docs/internals/
Dthreads-syscalls-signals.txt3 sleeping, and not holding the CPU semaphore. This will set the
5 the CPU semaphore. By the time it returns, tid will be the running
10 must be runnable, and holding the CPU semaphore. When this call
12 and will not be holding the CPU semaphore. Note that another
20 The master semaphore is run_sema in vg_scheduler.c.
27 semaphore with a new pipe so the process has its own.
/external/kernel-headers/original/linux/netfilter/
Dnfnetlink.h132 extern struct semaphore nfnl_sem;

12