Object

razie

Threads

Related Doc: package razie

Permalink

object Threads

multithreading helpers, to tie me over until I learn to effectively exploit actors or other inferior beings

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Threads
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FuncThread[A >: Null <: AnyRef] extends Thread

    Permalink
  2. class FuncValThread[A, B] extends Thread

    Permalink
  3. class KillerThread extends Thread

    Permalink
  4. class ThreadTimeoutRtException extends RuntimeException

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fork(f: ⇒ Unit): Thread

    Permalink

    run a func in its own, separate thread - don't wait for result

  10. def forkForeach[A](as: Iterable[A])(f: (A) ⇒ Unit): Iterable[Thread]

    Permalink

    fork one thread per element, each running the func

  11. def forkWithin(msec: Int)(f: ⇒ Unit): Thread

    Permalink
  12. def forkjoin[A, B](as: Iterable[A])(f: (A) ⇒ B): Iterable[Option[B]]

    Permalink

    fork a bunch of threads, then join them and return the results

  13. def forkjoinWithin[A, B >: Null <: AnyRef](msec: Int)(as: Iterable[A])(f: (A) ⇒ B): Iterable[Option[B]]

    Permalink

    fork a bunch of threads, then join them and return the results...all within a timeout.

    fork a bunch of threads, then join them and return the results...all within a timeout. The return should have an element for each input that finished in time...

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def join(threads: Iterable[Thread]): Unit

    Permalink

    join a bunch of thread - this is more to have a symmetry for fork

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def promise[A](f: ⇒ A): Future[A]

    Permalink

    make a promise and start it in the background

  22. def repeat(i: Int)(f: ⇒ Unit): Unit

    Permalink

    just repeat the func on as many threads

  23. def repeatAndWait[A >: Null <: AnyRef](i: Int)(f: (Int) ⇒ A)(implicit m: Manifest[A]): Iterable[A]

    Permalink

    repeat the func on as many threads, but each has a result which is joined and then collected

    repeat the func on as many threads, but each has a result which is joined and then collected

    f

    is passed the thread number, for no good reason :)

  24. def sliceForeach[A](t: Int, as: List[A])(f: (A) ⇒ Unit): List[Thread]

    Permalink

    same as forkForeach, but use the given number of threads and slice the iterable

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped