Ejemplo n.º 1
0
  /* Schedule play_next_track in the threadpool of the server,
   * so it won't block the thread on errors or on creation.
   */
  private void schedule_play_next_track() {
    if (closed) return;

    pop_track_thread_pool.execute(
        new Runnable() {
          @Override
          public void run() {
            play_next_track();
          }
        });
  }
Ejemplo n.º 2
0
 {
   pop_track_thread_pool = new ThreadPool(null, "pop_retry");
   pop_track_thread_pool.init(5);
 }