com.gemstone.gemfire.internal.cache.locks.QueuedSynchronizer.getSharedQueuedThreads()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(61)

本文整理了Java中com.gemstone.gemfire.internal.cache.locks.QueuedSynchronizer.getSharedQueuedThreads方法的一些代码示例,展示了QueuedSynchronizer.getSharedQueuedThreads的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueuedSynchronizer.getSharedQueuedThreads方法的具体详情如下:
包路径:com.gemstone.gemfire.internal.cache.locks.QueuedSynchronizer
类名称:QueuedSynchronizer
方法名:getSharedQueuedThreads

QueuedSynchronizer.getSharedQueuedThreads介绍

[英]Returns a collection containing threads that may be waiting to acquire in shared mode. This has the same properties as #getQueuedThreadsexcept that it only returns those threads waiting due to a shared acquire.
[中]返回一个集合,其中包含可能正在共享模式下等待获取的线程。它的属性与#GetQueuedThreads相同,只是它只返回那些由于共享获取而等待的线程。

代码示例

代码示例来源:origin: io.snappydata/gemfirexd

/**
 * Get a the list of threads waiting on this lock for debugging purposes
 */
public final synchronized Collection<Thread> getBlockedThreadsForDebugging() {
 Collection<Thread> shared = this.sync.getSharedQueuedThreads();
 Collection<Thread> exclusive = this.sync.getExclusiveQueuedThreads();
 ArrayList<Thread> results = new ArrayList<Thread>(shared.size()
   + exclusive.size());
 results.addAll(shared);
 results.addAll(exclusive);
 return results;
}

代码示例来源:origin: io.snappydata/gemfirexd-core

/**
 * Get a the list of threads waiting on this lock for debugging purposes
 */
public final synchronized Collection<Thread> getBlockedThreadsForDebugging() {
 Collection<Thread> shared = this.sync.getSharedQueuedThreads();
 Collection<Thread> exclusive = this.sync.getExclusiveQueuedThreads();
 ArrayList<Thread> results = new ArrayList<Thread>(shared.size()
   + exclusive.size());
 results.addAll(shared);
 results.addAll(exclusive);
 return results;
}

代码示例来源:origin: io.snappydata/snappydata-store-core

/**
 * Get a the list of threads waiting on this lock for debugging purposes
 */
public final synchronized Collection<Thread> getBlockedThreadsForDebugging() {
 Collection<Thread> shared = this.sync.getSharedQueuedThreads();
 Collection<Thread> exclusive = this.sync.getExclusiveQueuedThreads();
 ArrayList<Thread> results = new ArrayList<Thread>(shared.size()
   + exclusive.size());
 results.addAll(shared);
 results.addAll(exclusive);
 return results;
}

代码示例来源:origin: io.snappydata/gemfirexd-core

final int state = getState();
final Object writer = this.lockOwner;
final Collection<Thread> readWaiters = this.sync.getSharedQueuedThreads();
final Collection<Thread> writeWaiters = this.sync
  .getExclusiveQueuedThreads();

代码示例来源:origin: io.snappydata/snappydata-store-core

final int state = getState();
final Object writer = this.lockOwner;
final Collection<Thread> readWaiters = this.sync.getSharedQueuedThreads();
final Collection<Thread> writeWaiters = this.sync
  .getExclusiveQueuedThreads();

代码示例来源:origin: io.snappydata/gemfirexd

final int state = getState();
final Object writer = this.lockOwner;
final Collection<Thread> readWaiters = this.sync.getSharedQueuedThreads();
final Collection<Thread> writeWaiters = this.sync
  .getExclusiveQueuedThreads();

相关文章