org.openide.util.Mutex.postRequest()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(140)

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

Mutex.postRequest介绍

[英]Posts new request for current thread
[中]发布当前线程的新请求

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Posts a write request. This request runs immediately iff
 * this Mutex is in the "pure" exclusive mode, i.e. this Mutex
 * is not reentered in shared mode after the exclusive mode
 * was acquired. Otherwise it is delayed until all read requests
 * are executed.
 *
 * This request runs immediately if this Mutex is not contended at all.
 *
 * This request blocks if this Mutex is in the shared mode.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 * @param run runnable to run
 */
public void postWriteRequest(Runnable run) {
  postRequest(X, run, null);
}

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Posts a read request. This request runs immediately iff
 * this Mutex is in the shared mode or this Mutex is not contended
 * at all.
 *
 * This request is delayed if this Mutex is in the exclusive
 * mode and is held by this thread, until the exclusive is left.
 *
 * Finally, this request blocks, if this Mutex is in the exclusive
 * mode and is held by another thread.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 *
 * @param run runnable to run
 */
public void postReadRequest(final Runnable run) {
  postRequest(S, run, null);
}

代码示例来源:origin: org.netbeans.api/org-openide-util

m.postRequest(mutexMode, run, wrapper);
return;

代码示例来源:origin: in.jlibs/org-openide-util

/** Posts a write request. This request runs immediately iff
 * this Mutex is in the "pure" exclusive mode, i.e. this Mutex
 * is not reentered in shared mode after the exclusive mode
 * was acquired. Otherwise it is delayed until all read requests
 * are executed.
 *
 * This request runs immediately if this Mutex is not contended at all.
 *
 * This request blocks if this Mutex is in the shared mode.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 * @param run runnable to run
 */
public void postWriteRequest(Runnable run) {
  postRequest(X, run, null);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Posts a write request. This request runs immediately iff
 * this Mutex is in the "pure" exclusive mode, i.e. this Mutex
 * is not reentered in shared mode after the exclusive mode
 * was acquired. Otherwise it is delayed until all read requests
 * are executed.
 *
 * This request runs immediately if this Mutex is not contended at all. 
 *
 * This request blocks if this Mutex is in the shared mode.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 * @param run runnable to run
 */
public void postWriteRequest (Runnable run) {
  postRequest(X, run);
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Posts a write request. This request runs immediately iff
 * this Mutex is in the "pure" exclusive mode, i.e. this Mutex
 * is not reentered in shared mode after the exclusive mode
 * was acquired. Otherwise it is delayed until all read requests
 * are executed.
 *
 * This request runs immediately if this Mutex is not contended at all.
 *
 * This request blocks if this Mutex is in the shared mode.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 * @param run runnable to run
 */
public void postWriteRequest(Runnable run) {
  postRequest(X, run, null);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Posts a read request. This request runs immediately iff
 * this Mutex is in the shared mode or this Mutex is not contended
 * at all. 
 *
 * This request is delayed if this Mutex is in the exclusive
 * mode and is held by this thread, until the exclusive is left.
 *
 * Finally, this request blocks, if this Mutex is in the exclusive
 * mode and is held by another thread. 
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 *
 * @param run runnable to run
 */
public void postReadRequest (final Runnable run) {
  postRequest(S, run);
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Posts a read request. This request runs immediately iff
 * this Mutex is in the shared mode or this Mutex is not contended
 * at all.
 *
 * This request is delayed if this Mutex is in the exclusive
 * mode and is held by this thread, until the exclusive is left.
 *
 * Finally, this request blocks, if this Mutex is in the exclusive
 * mode and is held by another thread.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 *
 * @param run runnable to run
 */
public void postReadRequest(final Runnable run) {
  postRequest(S, run, null);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Posts a write request. This request runs immediately iff
 * this Mutex is in the "pure" exclusive mode, i.e. this Mutex
 * is not reentered in shared mode after the exclusive mode
 * was acquired. Otherwise it is delayed until all read requests
 * are executed.
 *
 * This request runs immediately if this Mutex is not contended at all. 
 *
 * This request blocks if this Mutex is in the shared mode.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 * @param run runnable to run
 */
public void postWriteRequest (Runnable run) {
  postRequest(X, run);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Posts a read request. This request runs immediately iff
 * this Mutex is in the shared mode or this Mutex is not contended
 * at all. 
 *
 * This request is delayed if this Mutex is in the exclusive
 * mode and is held by this thread, until the exclusive is left.
 *
 * Finally, this request blocks, if this Mutex is in the exclusive
 * mode and is held by another thread. 
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 *
 * @param run runnable to run
 */
public void postReadRequest (final Runnable run) {
  postRequest(S, run);
}

代码示例来源:origin: in.jlibs/org-openide-util

/** Posts a read request. This request runs immediately iff
 * this Mutex is in the shared mode or this Mutex is not contended
 * at all.
 *
 * This request is delayed if this Mutex is in the exclusive
 * mode and is held by this thread, until the exclusive is left.
 *
 * Finally, this request blocks, if this Mutex is in the exclusive
 * mode and is held by another thread.
 *
 * <p><strong>Warning:</strong> this method blocks.</p>
 *
 * @param run runnable to run
 */
public void postReadRequest(final Runnable run) {
  postRequest(S, run, null);
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

m.postRequest(mutexMode, run, wrapper);
return;

代码示例来源:origin: in.jlibs/org-openide-util

m.postRequest(mutexMode, run, wrapper);
return;

相关文章