OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Semaphore
(Results
1 - 25
of
38
) sorted by null
1
2
/development/simulator/app/
Semaphore.h
4
// Inter-process
semaphore
.
19
* Platform-independent
semaphore
class.
21
* Each object holds a single
semaphore
.
24
*
semaphore
(following POSIX semantics). See the comments in shmem.h.
26
class
Semaphore
{
28
Semaphore
(void);
29
virtual ~
Semaphore
(void);
32
* Create a new
semaphore
, with the specified initial value. The
38
* Attach to an existing
semaphore
.
43
* Acquire or release the
semaphore
[
all
...]
Semaphore.cpp
6
#include "
Semaphore
.h"
9
# include <
semaphore
.h>
32
Semaphore
::
Semaphore
(void)
36
Semaphore
::~
Semaphore
(void)
39
bool
Semaphore
::create(int key, int initialValue, bool deleteExisting)
44
bool
Semaphore
::attach(int key)
49
void
Semaphore
::acquire(void)
52
void
Semaphore
::release(void
[
all
...]
Shmem.h
13
#include "
Semaphore
.h"
21
* For convenience, a
semaphore
is associated with each segment.
85
Semaphore
mSem; // uses the same value for "key"
Android.mk
31
Semaphore
.cpp \
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
SemaphoreTest.java
27
static class PublicSemaphore extends
Semaphore
{
41
final
Semaphore
lock;
42
InterruptibleLockRunnable(
Semaphore
l) { lock = l; }
56
final
Semaphore
lock;
57
InterruptedLockRunnable(
Semaphore
l) { lock = l; }
70
Semaphore
s0 = new
Semaphore
(0, false);
73
Semaphore
s1 = new
Semaphore
(-1, false);
76
Semaphore
s2 = new Semaphore(-1, false)
[
all
...]
ThreadLocalTest.java
12
import java.util.concurrent.
Semaphore
;
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
Semaphore.java
13
* A counting
semaphore
. Conceptually, a
semaphore
maintains a set of
17
* However, no actual permit objects are used; the {@code
Semaphore
} just
22
* a class that uses a
semaphore
to control access to a pool of items:
26
* private final
Semaphore
available = new
Semaphore
(MAX_AVAILABLE, true);
70
* the
semaphore
, guaranteeing that an item is available for use. When
72
* pool and a permit is returned to the
semaphore
, allowing another
75
* from being returned to the pool. The
semaphore
encapsulates the
80
* <p>A
semaphore
initialized to one, and which is used such that i
[
all
...]
/external/v8/src/
debug-agent.h
76
Semaphore
* terminate_now_; //
Semaphore
to signal termination.
77
Semaphore
* listening_;
platform.h
117
class
Semaphore
;
226
// Factory method for creating platform dependent
Semaphore
.
227
// Please use delete to reclaim the storage for the returned
Semaphore
.
228
static
Semaphore
* CreateSemaphore(int count);
438
//
Semaphore
440
// A
semaphore
object is a synchronization object that maintains a count. The
441
// count is decremented each time a thread completes a wait for the
semaphore
442
// object and incremented each time a thread signals the
semaphore
. When the
443
// count reaches zero, threads waiting for the
semaphore
blocks until the
446
class
Semaphore
{
[
all
...]
d8-debug.h
86
// the list is guarded by a mutex and a
semaphore
signals new items in the
89
i::
Semaphore
* event_available_;
platform-nullos.cc
390
class NullSemaphore : public
Semaphore
{
412
Semaphore
* OS::CreateSemaphore(int count) {
platform-macos.cc
40
#include <
semaphore
.h>
43
#include <mach/
semaphore
.h>
496
class MacOSSemaphore : public
Semaphore
{
506
// The MacOS mach
semaphore
documentation claims it does not have spurious
528
Semaphore
* OS::CreateSemaphore(int count) {
platform-openbsd.cc
32
#include <
semaphore
.h>
477
class OpenBSDSemaphore : public
Semaphore
{
493
if (result == 0) return; // Successfully got
semaphore
.
521
if (result == 0) return true; // Successfully got
semaphore
.
528
Semaphore
* OS::CreateSemaphore(int count) {
platform-solaris.cc
41
#include <
semaphore
.h>
443
class SolarisSemaphore : public
Semaphore
{
459
if (result == 0) return; // Successfully got
semaphore
.
506
// Wait for
semaphore
signalled or timeout.
509
if (result == 0) return true; // Successfully got
semaphore
.
516
Semaphore
* OS::CreateSemaphore(int count) {
log.h
74
class
Semaphore
;
top.cc
126
// Create a dummy thread that will wait forever on a
semaphore
. The only
217
// This
semaphore
is used by the PreallocatedMemoryThread to wait for ever.
218
static
Semaphore
* wait_for_ever_semaphore_;
219
//
Semaphore
to signal that the data has been initialized.
220
static
Semaphore
* data_ready_semaphore_;
230
Semaphore
* PreallocatedMemoryThread::wait_for_ever_semaphore_ = NULL;
231
Semaphore
* PreallocatedMemoryThread::data_ready_semaphore_ = NULL;
[
all
...]
debug.h
699
static
Semaphore
* command_received_; // Signaled for each command received.
883
Semaphore
* const sem_;
/frameworks/base/tests/CoreTests/android/core/
SocketTest.java
30
import java.util.concurrent.
Semaphore
;
117
final
Semaphore
semThreadEnd = new
Semaphore
(0);
/external/v8/test/cctest/
test-lock.cc
45
Semaphore
* sem = OS::CreateSemaphore(0);
47
//
Semaphore
not signalled - timeout.
55
//
Semaphore
signalled - no timeout.
cctest.h
115
v8::internal::
Semaphore
* gate_;
119
static v8::internal::
Semaphore
* all_tests_done_;
test-sockets.cc
36
Semaphore
* listening_; // Signalled when the server socket is in listen mode.
/frameworks/base/graphics/java/android/renderscript/
RSSurfaceView.java
21
import java.util.concurrent.
Semaphore
;
/frameworks/base/libs/rs/java/Film/src/com/android/film/
FilmView.java
21
import java.util.concurrent.
Semaphore
;
/frameworks/base/libs/rs/java/Fountain/src/com/android/fountain/
FountainView.java
21
import java.util.concurrent.
Semaphore
;
/cts/tools/host/src/com/android/cts/
DeviceManager.java
25
import java.util.concurrent.
Semaphore
;
43
private
Semaphore
mSemaphore = new
Semaphore
(0);
229
// increment the counter
semaphore
to unblock threads waiting for devices
316
// Reset the device counter
semaphore
. We will wait below until at least one device
353
deviceFound = false; // go wait for next
semaphore
permit
Completed in 2286 milliseconds
1
2