Code example for BitSet

Methods: clear

0
   * 
   * @param thisCoroutine Integer identifier for the coroutine requesting exit. 
   * */ 
  public synchronized void co_exit(int thisCoroutine)
  { 
    m_activeIDs.clear(thisCoroutine);
    m_nextCoroutine=NOBODY; // %REVIEW%
    notify();
  } 
 
  /** Make the ID available for reuse and terminate this coroutine, 
   * transferring control to the specified coroutine. Note that this 
   * returns immediately rather than waiting for any further coroutine 
   * traffic, so the thread can proceed with other shutdown activities. 
   * 
   * @param arg_object    A value to be passed to the other coroutine. 
   * @param thisCoroutine Integer identifier for the coroutine leaving the set. 
   * @param toCoroutine   Integer identifier for the coroutine we wish to 
   * invoke.  
   * @exception java.lang.NoSuchMethodException if toCoroutine isn't a 
   * registered member of this group. %REVIEW% whether this is the best choice.