/art/runtime/ |
monitor_linux.cc | 17 #include "monitor.h" 21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, const char*, int32_t) {
|
monitor_pool.cc | 22 #include "monitor.h" 49 VLOG(monitor) << "Expanding to capacity " 71 Monitor* last = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(chunk) + 78 Monitor* before = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(last) - 87 DCHECK(last == reinterpret_cast<Monitor*>(chunk)); 108 Monitor* MonitorPool::CreateMonitorInPool(Thread* self, Thread* owner, mirror::Object* obj, 116 VLOG(monitor) << "Allocating a new chunk."; 120 Monitor* mon_uninitialized = first_free_ 127 Monitor* monitor = new(mon_uninitialized) Monitor(self, owner, obj, hash_code, id); local [all...] |
monitor_pool_test.cc | 39 static void VerifyMonitor(Monitor* mon, Thread* self) { 40 // Check whether the monitor id is correct. 42 // Check whether the monitor id agrees with the compuation. 44 // Check whether we can use the monitor ID to get the monitor. 49 std::vector<Monitor*> monitors; 55 // Note: for correct testing, make sure this is corresponding to monitor-pool's initial size. 74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); 79 // Release a random monitor. 81 Monitor* mon = monitors[index] [all...] |
monitor_pool.h | 20 #include "monitor.h" 34 // monitor id loses the alignment bits of the Monitor*. 45 static Monitor* CreateMonitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 48 Monitor* mon = new Monitor(self, owner, obj, hash_code); 56 static void ReleaseMonitor(Thread* self, Monitor* monitor) { 59 delete monitor; 61 GetMonitorPool()->ReleaseMonitorToPool(self, monitor); [all...] |
monitor.cc | 17 #include "monitor.h" 44 * Every Object has a monitor associated with it, but not every Object is actually locked. Even 45 * the ones that are locked do not need a full-fledged monitor until a) there is actual contention 65 * Only one thread can own the monitor at any time. There may be several threads waiting on it 70 uint32_t Monitor::lock_profiling_threshold_ = 0; 72 void Monitor::Init(uint32_t lock_profiling_threshold) { 76 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 77 : monitor_lock_("a monitor lock", kMonitorLock), 78 monitor_contenders_("monitor contenders", monitor_lock_) 759 Monitor* monitor = lw.FatLockMonitor(); local 1116 Monitor* monitor = thread->GetWaitMonitor(); local 1163 Monitor* monitor = thread->GetWaitMonitor(); local [all...] |
monitor.h | 50 class Monitor { 56 ~Monitor(); 138 // NO_THREAD_SAFETY_ANALYSIS for monitor->monitor_lock_. 144 // Align Monitor* as per the monitor ID field size in the lock word. 157 Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 159 Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code, MonitorId id) 162 // Install the monitor into its object, may fail if another thread installs a different monitor 168 // Links a thread into a monitor's wait set. The monitor lock must be held by the caller of thi [all...] |
lock_word-inl.h | 37 inline Monitor* LockWord::FatLockMonitor() const { 53 inline LockWord::LockWord(Monitor* mon, uint32_t rb_state)
|
lock_word.h | 32 class Monitor; 149 kFatLocked, // See associated monitor. 193 // Return the Monitor encoded in a fat lock. 194 Monitor* FatLockMonitor() const; 196 // Return the forwarding address stored in the monitor. 199 // Constructor a lock word for inflation to use a Monitor. 200 LockWord(Monitor* mon, uint32_t rb_state);
|
object_lock.cc | 20 #include "monitor.h" 37 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting);
|
/art/test/003-omnibus-opcodes/src/ |
Monitor.java | 21 public class Monitor { 35 System.out.println("Monitor.run"); 53 new Monitor().subTest();
|
Main.java | 44 Monitor.run();
|
/external/valgrind/drd/tests/ |
monitor_example.cpp | 2 An example that shows how to implement the monitor synchronization concept. 73 class Monitor 76 Monitor() 95 ~Monitor() 145 Monitor(const Monitor&); 146 Monitor& operator=(const Monitor&); 158 ScopedLock(Monitor& m) 173 Monitor& m_monitor [all...] |
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
MonitorBasedPriorityBlockingQueue.java | 96 final Monitor monitor = new Monitor(true); field in class:MonitorBasedPriorityBlockingQueue 97 private final Monitor.Guard notEmpty = 98 new Monitor.Guard(monitor) { 189 final Monitor monitor = this.monitor; local 190 monitor.enter() 238 final Monitor monitor = this.monitor; local 249 final Monitor monitor = this.monitor; local 260 final Monitor monitor = this.monitor; local 274 final Monitor monitor = this.monitor; local 297 final Monitor monitor = this.monitor; local 328 final Monitor monitor = this.monitor; local 346 final Monitor monitor = this.monitor; local 369 final Monitor monitor = this.monitor; local 379 final Monitor monitor = this.monitor; local 400 final Monitor monitor = this.monitor; local 449 final Monitor monitor = this.monitor; local 496 final Monitor monitor = this.monitor; local [all...] |
MonitorBasedArrayBlockingQueue.java | 82 /** Monitor guarding all access */ 83 final Monitor monitor; field in class:MonitorBasedArrayBlockingQueue 86 private final Monitor.Guard notEmpty; 89 private final Monitor.Guard notFull; 102 * Call only when occupying monitor. 112 * Call only when occupying monitor. 125 * Call only when occupying monitor. 175 monitor = new Monitor(fair) 246 final Monitor monitor = this.monitor; local 269 final Monitor monitor = this.monitor; local 291 final Monitor monitor = this.monitor; local 306 final Monitor monitor = this.monitor; local 320 final Monitor monitor = this.monitor; local 331 final Monitor monitor = this.monitor; local 345 final Monitor monitor = this.monitor; local 365 final Monitor monitor = this.monitor; local 389 final Monitor monitor = this.monitor; local 412 final Monitor monitor = this.monitor; local 442 final Monitor monitor = this.monitor; local 473 final Monitor monitor = this.monitor; local 527 final Monitor monitor = this.monitor; local 554 final Monitor monitor = this.monitor; local 569 final Monitor monitor = this.monitor; local 599 final Monitor monitor = this.monitor; local 637 final Monitor monitor = this.monitor; local 670 final Monitor monitor = this.monitor; local 740 final Monitor monitor = MonitorBasedArrayBlockingQueue.this.monitor; local 757 final Monitor monitor = MonitorBasedArrayBlockingQueue.this.monitor; local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTestBase.java | 40 public static class Monitor { 92 protected Monitor mOnVideoSizeChangedCalled = new Monitor(); 93 protected Monitor mOnVideoRenderingStartCalled = new Monitor(); 94 protected Monitor mOnBufferingUpdateCalled = new Monitor(); 95 protected Monitor mOnPrepareCalled = new Monitor(); 96 protected Monitor mOnSeekCompleteCalled = new Monitor() [all...] |
/external/libgdx/backends/gdx-backend-headless/src/com/badlogic/gdx/backends/headless/mock/graphics/ |
MockGraphics.java | 225 public Monitor getPrimaryMonitor() { 230 public Monitor getMonitor() { 235 public Monitor[] getMonitors() { 240 public DisplayMode[] getDisplayModes(Monitor monitor) { 245 public DisplayMode getDisplayMode(Monitor monitor) {
|
/system/netd/server/ |
MDnsSdListener.h | 68 class Monitor { 70 Monitor(); 71 virtual ~Monitor() {} 105 Handler(Monitor *m, MDnsSdListener *listener); 134 Monitor *mMonitor;
|
MDnsSdListener.cpp | 49 Monitor *m = new Monitor(); 53 MDnsSdListener::Handler::Handler(Monitor *m, MDnsSdListener *listener) : 518 MDnsSdListener::Monitor::Monitor() { 527 pthread_create(&mThread, NULL, MDnsSdListener::Monitor::threadStart, this); 531 void *MDnsSdListener::Monitor::threadStart(void *obj) { 532 Monitor *monitor = reinterpret_cast<Monitor *>(obj) local [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/ |
Graphics.java | 81 /** Describes a monitor 85 public class Monitor { 90 protected Monitor (int virtualX, int virtualY, String name) { 196 /** @return the primary monitor **/ 197 public Monitor getPrimaryMonitor(); 199 /** @return the monitor the application's window is located on */ 200 public Monitor getMonitor(); 202 /** @return the currently connected {@link Monitor}s */ 203 public Monitor[] getMonitors(); 205 /** @return the supported fullscreen {@link DisplayMode}(s) of the monitor the window is on * [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
MonitorTestCase.java | 28 * Tests for {@link Monitor}, either interruptible or uninterruptible. 35 public class TestGuard extends Monitor.Guard { 39 super(MonitorTestCase.this.monitor); 53 private Monitor monitor; field in class:MonitorTestCase 55 private TestThread<Monitor> thread1; 56 private TestThread<Monitor> thread2; 64 monitor = new Monitor(fair); 65 tearDownStack.addTearDown(thread1 = new TestThread<Monitor>(monitor, "TestThread #1")) [all...] |
/external/chromium-trace/catapult/third_party/Paste/paste/ |
reloader.py | 4 A file monitor and server restarter. 53 Install the reloading monitor. 60 mon = Monitor(poll_interval=poll_interval) 65 class Monitor(object): 158 class JythonMonitor(Monitor): 161 Monitor that utilizes Jython's special 178 watch_file = Monitor.watch_file 179 add_file_callback = Monitor.add_file_callback
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/ |
GwtGraphics.java | 326 public Monitor getPrimaryMonitor () { 327 return new GwtMonitor(0, 0, "Primary Monitor"); 331 public Monitor getMonitor () { 336 public Monitor[] getMonitors () { 337 return new Monitor[] { getPrimaryMonitor() }; 341 public DisplayMode[] getDisplayModes (Monitor monitor) { 346 public DisplayMode getDisplayMode (Monitor monitor) { 501 static class GwtMonitor extends Monitor { [all...] |
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/ |
Lwjgl3Graphics.java | 219 Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor(); local 220 GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2); 228 Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor(); local 229 GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2); 246 public Monitor getPrimaryMonitor() { 251 public Monitor getMonitor() { 252 Monitor[] monitors = getMonitors(); 253 Monitor result = monitors[0]; 264 for (Monitor monitor : monitors) [all...] |
Lwjgl3ApplicationConfiguration.java | 33 import com.badlogic.gdx.Graphics.Monitor;
230 * primary monitor. Default -1 for booth coordinates for centered.
299 * per-monitor HDPI scale setting. The operating system may report window
313 * @return the currently active {@link DisplayMode} of the primary monitor
323 * @return the currently active {@link DisplayMode} of the given monitor
325 public static DisplayMode getDisplayMode(Monitor monitor) {
327 GLFWVidMode videoMode = GLFW.glfwGetVideoMode(((Lwjgl3Monitor)monitor).monitorHandle);
328 return new Lwjgl3Graphics.Lwjgl3DisplayMode(((Lwjgl3Monitor)monitor).monitorHandle, videoMode.width(), videoMode.height(), videoMode.refreshRate(),
333 * @return the available {@link DisplayMode}s of the primary monitor
[all...] |
/external/webrtc/webrtc/base/ |
socket_unittest.cc | 199 sink.Monitor(client.get()); 206 sink.Monitor(server.get()); 254 sink.Monitor(client.get()); 259 sink.Monitor(server.get()); 302 sink.Monitor(client.get()); 307 sink.Monitor(server.get()); 335 sink.Monitor(client.get()); 340 sink.Monitor(server.get()); 392 sink.Monitor(server.get()); 436 sink.Monitor(client.get()) [all...] |