Tabnine Logo
LinkedTransferQueue.casHead
Code IndexAdd Tabnine to your IDE (free)

How to use
casHead
method
in
jsr166y.LinkedTransferQueue

Best Java code snippets using jsr166y.LinkedTransferQueue.casHead (Showing top 6 results out of 315)

origin: h2oai/h2o-2

if (casHead(null, s))
  return s;                 // initialize
origin: h2oai/h2o-2

for (Node q = p; q != h;) {
  if (head == h && casHead(h, n == null ? q : n)) {
    h.forgetNext();
    break;
origin: h2oai/h2o-2

if (hn == null)
  return;          // now empty
if (hn != h && casHead(h, hn))
origin: org.codehaus.jsr166-mirror/jsr166y

if (casHead(null, s))
  return s;                 // initialize
origin: org.codehaus.jsr166-mirror/jsr166y

for (Node q = p; q != h;) {
  if (head == h && casHead(h, n == null ? q : n)) {
    h.forgetNext();
    break;
origin: org.codehaus.jsr166-mirror/jsr166y

if (hn == null)
  return;          // now empty
if (hn != h && casHead(h, hn))
jsr166yLinkedTransferQueuecasHead

Popular methods of LinkedTransferQueue

  • offer
    Inserts the specified element at the tail of this queue. As the queue is unbounded, this method will
  • poll
  • <init>
    Creates a LinkedTransferQueueinitially containing the elements of the given collection, added in tra
  • addAll
  • awaitMatch
    Spins/yields/blocks until node s is matched or caller gives up.
  • casSweepVotes
  • casTail
  • cast
  • countOfMode
    Traverses and counts unmatched nodes of the given mode. Used by methods size and getWaitingConsumerC
  • findAndRemove
    Main implementation of remove(Object)
  • firstDataItem
    Returns the item in the first unmatched node with isData; or null if none. Used by peek.
  • firstOfMode
    Returns the first unmatched node of the given mode, or null if none. Used by methods isEmpty, hasWai
  • firstDataItem,
  • firstOfMode,
  • spinsFor,
  • succ,
  • sweep,
  • tryAppend,
  • unsplice,
  • xfer,
  • clear

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top plugins for WebStorm
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