本文整理了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
[英]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();
内容来源于网络,如有侵权,请联系作者删除!