Class CLEventList

    • Constructor Detail

      • CLEventList

        public CLEventList​(int capacity)
      • CLEventList

        public CLEventList​(CLEvent... events)
    • Method Detail

      • waitForEvents

        public void waitForEvents()
        Waits for all events in this list to occur. If this list is empty this method won't do anything.
      • waitForEvents

        public void waitForEvents​(int start,
                                  int range)
        Waits for all events of the specified region in this list to occur. Will throw IndexOutOfBoundsException if indices are out of bounds.
      • waitForEvent

        public void waitForEvent​(int index)
        Waits for the event with the given index in this list to occur.
      • release

        public void release()
        Releases all CLEvents in this list.
        Specified by:
        release in interface CLResource
      • getEvent

        public CLEvent getEvent​(int index)
      • size

        public int size()
        Returns the current size of this list.
      • capacity

        public int capacity()
        Returns the maximum size of this list.