frysk.sys
Class SignalSet

java.lang.Object
  extended by frysk.sys.SignalSet

public final class SignalSet
extends Object

A Signal Set, corresponds to sigset_t.


Constructor Summary
SignalSet()
          Create an empty signal set.
SignalSet(Signal sig)
          Create a SigSet containing the single signal.
SignalSet(Signal[] sigs)
          Create a SigSet containing the signals in the array.
 
Method Summary
 SignalSet add(Signal sig)
          Add sigNum to the SignalSet; return this.
 SignalSet add(Signal[] sigs)
          Add the array of signals to the SignalSet; return this.
 SignalSet blockProcMask()
          Block this SignalSet's signals; return this.
 SignalSet blockProcMask(SignalSet oldSet)
          Block this SignalSet's signals; return the previous signal set in oldSet; return this.
 boolean contains(Signal sig)
          Does this SignalSet contain sigNum (the underlying code uses sigismember, the name contains is more consistent with java.
 SignalSet empty()
          Empty the signal set; return this.
 SignalSet fill()
          Fill the signal set; return this.
 SignalSet getPending()
          Set to the set of pending signals; return this
 SignalSet getProcMask()
          Get the current process signal mask; return this.
 SignalSet remove(Signal sig)
          Remove Signal from the SignalSet (the underlying code uses sigdelset, the name remove is more consistent with java); return this.
 SignalSet setProcMask()
          Set the process signal mask to this SignalSet's signals; return this.
 SignalSet setProcMask(SignalSet oldSet)
          Set the thread's signal mask to this SignalSet's signals; return the previous signal set in oldSet.
 int size()
          The number of elements in the set.
 SignalSet suspend()
          Suspend the thread, unblocking signals in SignalSet; return this.
 Signal[] toArray()
          As an array.
 String toString()
          As a string.
 SignalSet unblockProcMask()
          Unblock this SignalSet's signals; return this.
 SignalSet unblockProcMask(SignalSet oldSet)
          Unblock this SignalSet's signals; return the previous signal set in oldSet; return this.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignalSet

public SignalSet()
Create an empty signal set.


SignalSet

public SignalSet(Signal[] sigs)
Create a SigSet containing the signals in the array.


SignalSet

public SignalSet(Signal sig)
Create a SigSet containing the single signal.

Method Detail

toString

public String toString()
As a string.

Overrides:
toString in class Object

toArray

public Signal[] toArray()
As an array.


empty

public SignalSet empty()
Empty the signal set; return this.


fill

public SignalSet fill()
Fill the signal set; return this.


add

public SignalSet add(Signal sig)
Add sigNum to the SignalSet; return this.


add

public SignalSet add(Signal[] sigs)
Add the array of signals to the SignalSet; return this.


size

public int size()
The number of elements in the set.


remove

public SignalSet remove(Signal sig)
Remove Signal from the SignalSet (the underlying code uses sigdelset, the name remove is more consistent with java); return this.


contains

public boolean contains(Signal sig)
Does this SignalSet contain sigNum (the underlying code uses sigismember, the name contains is more consistent with java.


getPending

public SignalSet getPending()
Set to the set of pending signals; return this


suspend

public SignalSet suspend()
Suspend the thread, unblocking signals in SignalSet; return this.


blockProcMask

public SignalSet blockProcMask(SignalSet oldSet)
Block this SignalSet's signals; return the previous signal set in oldSet; return this.


blockProcMask

public SignalSet blockProcMask()
Block this SignalSet's signals; return this.


unblockProcMask

public SignalSet unblockProcMask(SignalSet oldSet)
Unblock this SignalSet's signals; return the previous signal set in oldSet; return this.


unblockProcMask

public SignalSet unblockProcMask()
Unblock this SignalSet's signals; return this.


setProcMask

public SignalSet setProcMask(SignalSet oldSet)
Set the thread's signal mask to this SignalSet's signals; return the previous signal set in oldSet.


setProcMask

public SignalSet setProcMask()
Set the process signal mask to this SignalSet's signals; return this.


getProcMask

public SignalSet getProcMask()
Get the current process signal mask; return this.