Tabnine Logo
AstWriteAwaitNode.setBarrierName
Code IndexAdd Tabnine to your IDE (free)

How to use
setBarrierName
method
in
org.kaazing.k3po.lang.internal.ast.AstWriteAwaitNode

Best Java code snippets using org.kaazing.k3po.lang.internal.ast.AstWriteAwaitNode.setBarrierName (Showing top 4 results out of 315)

origin: k3po/k3po

public StreamNested<R> setBarrierName(String barrierName) {
  node.setBarrierName(barrierName);
  return this;
}
origin: k3po/k3po

public AstWriteAwaitNodeBuilder setBarrierName(String barrierName) {
  node.setBarrierName(barrierName);
  return this;
}
origin: k3po/k3po

private void conditionallyInjectWriteBarrier(State state, RegionInfo regionInfo) {
  List<AstStreamableNode> streamables = state.streamables;
  switch (state.readWriteState) {
  case READ:
    String barrierName = String.format("~read~write~%d", ++state.readWriteBarrierCount);
    AstReadNotifyNode readNotify = new AstReadNotifyNode();
    readNotify.setRegionInfo(regionInfo);
    readNotify.setBarrierName(barrierName);
    AstWriteAwaitNode writeAwait = new AstWriteAwaitNode();
    writeAwait.setRegionInfo(regionInfo);
    writeAwait.setBarrierName(barrierName);
    streamables.add(readNotify);
    streamables.add(writeAwait);
    break;
  default:
    break;
  }
}
origin: k3po/k3po

@Override
public AstWriteAwaitNode visitWriteAwaitNode(WriteAwaitNodeContext ctx) {
  node = new AstWriteAwaitNode();
  node.setRegionInfo(asSequentialRegion(childInfos, ctx));
  node.setBarrierName(ctx.Name().getText());
  return node;
}
org.kaazing.k3po.lang.internal.astAstWriteAwaitNodesetBarrierName

Popular methods of AstWriteAwaitNode

  • <init>
  • getBarrierName
  • getRegionInfo
  • setRegionInfo

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now